Netbeans 6.7.1:宏问题
我发现 Netbeans 中的宏功能(通过源代码编辑窗口工具栏中的红色圆圈和灰色方块访问)是一种快速完成工作的相当巧妙的方法。
然而,我觉得它们无法打开/关闭很烦人。我可以输入一些代码,如果它只包含我的一个宏中的第一个(不是全部)击键,它将跳过 2 个击键。
我设法禁用此功能的唯一方法是完全删除宏:工具>选项>编辑>宏
有没有更简单的方法来打开/关闭它们?
编辑:有咬人的吗?
I find the macros feature, accessed via the red circle and the grey square in the toolbar of the source editing window, in Netbeans to be a rather nifty way of getting things done quick.
However, I find it annoying how they cannot be toggled on/off. I can be typing some code, and if it contains just the first (not all) the keystrokes in one of my macros, it will skip 2 keystrokes worth of typing.
The only way I have managed to disable this is by deleting the macro entirely:Tools > Options > Editor > Macros
Is there an easier way to toggle them on / off?
EDIT: Any biters?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您正在寻找缩写输入,例如
in
而不是interface
,您可能需要查看代码模板而不是宏。看看工具>;选项>编辑>代码模板。当您按 Tab(或 Space,您根据每个模板进行选择)时,它们会展开。模板还可以提供有关展开后光标应放置在何处的指示。If you're looking for abbreviated input like
in
instead ofinterface
, you probably want to take a look at code templates rather than macros. Have a look at Tools > Options > Editor > Code Templates. These expand when you press Tab (or Space, your choice on a per-template basis). Templates can also provide indications as to where the cursor should be placed after the expansion.