Netbeans 6.7.1:宏问题

发布于 2024-08-20 18:31:44 字数 261 浏览 3 评论 0原文

我发现 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦萦几度 2024-08-27 18:31:44

如果您正在寻找缩写输入,例如 in 而不是 interface,您可能需要查看代码模板而不是宏。看看工具>;选项>编辑>代码模板。当您按 Tab(或 Space,您根据每个模板进行选择)时,它们会展开。模板还可以提供有关展开后光标应放置在何处的指示。

If you're looking for abbreviated input like in instead of interface, 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文