IntelliJ 宏菜单

发布于 2024-08-18 19:57:24 字数 223 浏览 7 评论 0原文

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

I've just started playing with macros in IntelliJ. I recorded several then played back until I decided to add keymap shortcuts to my macros. I went to Settings and pressed Alt+C to add a new child map because I couldn't edit the parent. Since then the macros are no longer accessible from the Tools menu, not to mention that the shortcuts don't work. I tried removing the shortcuts from the keymap but even though I press Alt+R or Alt+L, it still does not revert them back. And TAB has stopped working .. when writing sout +TAB ..nothing happens anymore... HELP

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

找回味觉 2024-08-25 19:57:24

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

如果您打开 IDE 设置窗口,您将看到实时模板。在输出下,您应该找到 sout(将字符串打印到 System.out)。如果没有,请单击“添加”,然后键入sout 对于缩写部分,输入描述,然后对于模板文本输入 System.out.println("$END$");

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

认为这可能对某人有帮助...

Sorted! sout+TAB is part of live templates..

If you open the IDE Settings window, you will see Live Templates.. Under output you should find sout(Prints a string to System.out).. if not, click Add and then type sout for the Abbreviation section, type in a description and then for the template text put System.out.println("$END$");

I use the Default keymap in IntelliJ now...

Thought this might help someone...

夏末染殇 2024-08-25 19:57:24

您可以尝试使用默认的键盘映射。当您修改默认键盘映射时,系统会使用您的设置创建一个副本。

如果这不起作用,您可以尝试退出 IntelliJ 并删除此文件:

/.IntelliJIdea90/config/options/macros.xml

并检查该文件夹

/.IntelliJIdea90/config/keymaps

要查找 config 文件夹的位置,您应该在 idea 的主要可执行文件所在的文件夹中查找文件:idea.properties。

查找行:

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

这是配置的位置。文件夹。

重新启动 IntelliJ。

复制您要删除的任何文件!

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!

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