本文介绍了在Netbeans上激活文本编辑宏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题是在超级用户上提出的,但是我没有得到任何答复,所以我把它移到了这里...我相信它是相关且重要的...我在Mac OS X上使用Netbeans已有一段时间了,它具有一些非常好的功能,但是它不支持大多数宏,这很糟糕.我不仅在谈论复杂的emacs宏,而且甚至不支持最基本的宏,例如C-e代表行尾或C-a代表行首.

This question was asked on Super User but I didn't get any response so I moved it here...I believe it is relevant and important...I've been using Netbeans on Mac OS X for sometime it has some really good features but it doesn't support most of the macros and that sucks. I'm not only talking about complicated emacs macros but even the most basic are not supported like C-e for the end of the line or C-a for the beginning of the line.

有人可以帮助激活宏吗?

Can somebody help to activate macros ?

推荐答案

我不知道,如果你真的是宏.当我想到宏时,会想到发出的系列命令和击键.在任何情况下,Netbeans都默认使用home和end键来支持您提到的单个命令(快捷方式)(一行的结尾和一行的开头).您可以将它们替换为您选择的组合键,也可以将其添加为替代组合.

I'm not sure if you really mean macros. When I think of macros, I think of a series of commands and keystrokes being issued. In any case, single commands (shortcuts) like the ones you mention (end of a line and beginning of a line) are certainly supported by Netbeans by default with the home and end keys. You can replace those with the key combinations of your choice or add them as alternates.

实际上,Netbeans允许您创建快捷方式的完整配置文件,并为Emacs用户提供了一个完整的配置文件,其中包含您提到的确切快捷方式.可从工具">选项"菜单的键盘映射"选项卡访问此功能.

In fact, Netbeans allows you to create entire profiles of shortcuts and ships with one for Emacs users and contains the exact shortcuts you mention. This functionality is accessed from the Tools > Options menu, Keymap tab.

如果您正在寻找实际的宏功能,那么Netbeans也支持该功能.您可能需要对文档进行一些挖掘,而Netbeans仅随附3个内置宏.您可以直接定义它们,或者让Netbeans将您的活动记录到宏中.可以从工具">选项"菜单的编辑器">宏"选项卡中访问宏.

If you are looking for actual macro capability, that is supported in Netbeans as well. You might have to do some digging for documentation and Netbeans only comes with 3 build in macros. You can define them directly or have Netbeans record your activities to a macro. Macros can be accessed from Tools > Options menu, Editor > macros tab.

Netbeans也支持模板,模板是预定义的代码或文本,可以通过在编辑器中输入缩写然后单击选项卡来生成.

Netbeans supports templates as well, which are pieces of predefined code or text that can be generated by entering an abbreviation in the editor and then hitting tab.

这篇关于在Netbeans上激活文本编辑宏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-28 18:53