我提供一个不用在idea中完成的方法(限windows平台)。使用autohotkey(https://autohotkey.com/)安装很简单就一个exe文件。 编辑脚本: ^/:: Send /*小明*/ return 存为comment.ahk运行AutoHotkey.exe comment.ahk就会把ctrl+/,绑定到键盘输出"/小明/"这个行为。按ctrl+/,就会输出"/小明/"。 希望对你有帮助。
我提供一个不用在idea中完成的方法(限windows平台)。
使用autohotkey(https://autohotkey.com/)
安装很简单就一个exe文件。
编辑脚本:
存为comment.ahk
运行AutoHotkey.exe comment.ahk
就会把ctrl+/,绑定到键盘输出"/小明/"这个行为。
按ctrl+/,就会输出"/小明/"。
希望对你有帮助。