有什么方法可以为WebStorm中的等号(=
)等字符设置快捷方式?
例如:Cmd + J打印=
在VSCode中,我们可以创建一个代码段并为其设置一个快捷方式,但在WebStorm中找不到任何方法。
您可以使用宏功能进行此类操作:https://www.jetbrains.com/help/webstorm/using-macros-in-the-editor.html
Edit | Macros | Start Macro Recording
=
Edit | Macros | Stop Macro Recording
Settings/Preferences | Keymap
,在此处找到您刚录制的宏(将在Macros
节点下,并为其指定任何所需的快捷方式