16

我刚刚开始在 IntelliJ 中使用宏。我录制了几个然后回放,直到我决定将键盘映射快捷方式添加到我的宏中。我转到设置并按 Alt+C 添加新的子地图,因为我无法编辑父地图。从那时起,不再可以从“工具”菜单访问宏,更不用说快捷方式不起作用了。我尝试从键盘映射中删除快捷方式,但即使我按 Alt+R 或 Alt+L,它仍然不会将它们恢复回来。并且 TAB 已停止工作 .. 写 sout +TAB 时 .. 没有任何反应了... 帮助

4

2 回答 2

35

排序!sout+TAB 是实时模板的一部分。

如果您打开 IDE 设置窗口,您将看到 Live Templates.. 在输出下您应该找到 sout(Prints a string to System.out).. 如果没有,请单击 Add,然后在 Abbreviation 部分输入 sout,输入描述然后为模板文本放入 System.out.println("$END$");

我现在在 IntelliJ 中使用默认键盘映射......

认为这可能会帮助某人...

于 2010-01-29T14:27:56.817 回答
3

You can try to use the default keymap. When you modify the default keymap, a copy is created with your settings.

If that is not working, you can try to quit IntelliJ and to delete this file:

/.IntelliJIdea90/config/options/macros.xml

and check also for the folder

/.IntelliJIdea90/config/keymaps

To find the location of the config folder you should look for the file : idea.properties in the folder where the main executable for idea is.

Look for the line:

# path to IDEA config folder. Make sure you're using forward slashes
idea.config.path=${idea.home}/.IntelliJIdea90/config

And this is the location of the config. folder.

Restart IntelliJ.

Take a copy of any file you are going to delete!

于 2010-01-21T11:19:02.557 回答