How Emacs is defined as an external editor for IntelliJ IDEA to use?

IntelliJ IDEA 2019  provides a comprehensive set of features, and the use of Java, Groovy, Scala, and other languages and tools integrate the most advanced technologies and frameworks of Web and enterprise development. This short tutorial is designed to walk you Emacs defined as an external editor for IntelliJ IDEA.
11133144_63e2d2729e.jpeg

# Prerequisite
to ensure that:
You are using IntelliJ IDEA version 10.0 or later.
Emacs properly downloaded and installed on your computer.

将Emacs配置为外部工具#
打开设置/首选项对话框。为此,您可以选择“ 文件”| 设置(在Windows和* nix上)或IntelliJ IDEA | 首选项 (在macOS上),或单击图标一般设置svg主工具栏上的按钮。
然后,在“ 工具”节点下,打开“ 外部工具 ”页面 。在此页面上,您必须将Emacs安装指定为当前文件的外部编辑器。这就是它的完成方式......
1、首先,在“ 外部工具”页面中,单击图标一般添加svg。将打开“ 创建/编辑工具”对话框。
2、在此对话框中,执行以下操作:
•输入工具名称(Emacs)和可选说明(打开Emacs)
•指定组的名称,Emacs将在“ 工具”菜单中显示。在此示例中,组名称为Editors。此步骤是可选的 - 如果您未指定组名,则Emacs将按原样显示在“ 工具”菜单中。
•清除复选框打开控制台。
•指定Emacs二进制文件位置。您可以手动键入,也可以单击省略号按钮,在文件系统中找到所需的二进制文件。
•由于您要在Emacs中打开当前文件,请将文件路径作为参数传递给程序:在“ 参数”字段中,键入$FilePath$。
•最后,指定工作目录 - 在我们的示例中,这是 $ProjectFileDir$
•单击确定。
3、应用更改并关闭“设置/首选项”对话框。

11133349_1e946d1f94.png

在Emacs中打开当前文件#
现在,当您查看“ 工具”菜单时,您将看到新节点 编辑器。指向此节点将显示Emacs命令:

11133446_9d823c23a5.png

打开文件进行编辑。接下来,在Tools菜单上,选择 Editors | Emacs - 并在Emacs中查看当前文件:

11133501_274b9d290f.png

Assign keyboard shortcuts #
incidentally, IntelliJ IDEA can be specified for this action a keyboard shortcut: Click the icon to open the General Settings svg "Settings / Preferences" dialog box, open the "Keyboard Map" page, find Emacs, and then in the context menu select "Add keyboard shortcuts":11133549_91b559c12f.png

The "Keyboard Shortcuts" dialog box, where you must assign a shortcut to be associated with this operation. For example, let's use Ctrl + Shift + Alt + E:

11133609_8987f6688c.png

Did not report any conflict, so click "OK", and then view the list of actions and "  Tools" | in new shortcut appears in  the Edit |  Emacs menu:

11133637_25d93cda99.png


Guess you like

Origin blog.51cto.com/14370425/2438315