Sublimetext 中的 Ctrl+Enter 是创建新行的默认快捷键,无论光标在当前行中的什么位置。但是,有时我需要在跳转到新行之前在当前行末尾添加分号。
如何让“ctrl+enter”快捷键在创建新行之前在当前行末尾添加分号?这可能吗?
抱歉我的英语不好。
最佳答案
您只需修改宏/Default/Add Line.sublime-macro
即可插入分号。
从此
[
{"command": "move_to", "args": {"to": "hardeol"}},
{"command": "insert", "args": {"characters": "\n"}}
]
到此
[
{"command": "move_to", "args": {"to": "hardeol"}},
{"command": "insert", "args": {"characters": ";\n"}}
]
关于sublimetext2 - 让 ctrl+enter 在行尾添加分号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27715141/