l Edit→Line→Duplicate line (ctrl+shift+d)复制一行代码,也可用于复制多行代码 l Edit→Text→Insert line after(ctrl+enter)添加一个新行 l Selection→Expand selection to line(ctrl+l)选择当前行,当连续按下此快捷键时,可选择多行 l Selection→Expand selection to word(ctrl+d)选择当前单词,当连续按...
"keys": ["alt+up"], "command": "swap_line_up" }, { "keys": ["alt+down"], "command": "swap_line_down" }, // 复制当前行到上一行 { "keys": ["ctrl+alt+up"], "command": "duplicate_line" }, // 复制当前行到下一行 { "keys": ["ctrl+alt+down"], "command": "duplicate...
To quickly duplicate a line of code, place the cursor anywhere in the line and hit Cmd–Shift–D(Mac) or Ctrl–Shift–D (Windows). Learn more Sublime Text Coding Tips. These coding tips are covered in our hands-on coding classes and bootcamps in NYC. To learn more, check out Noble ...
按键设置:[ { "keys": ["ctrl+d"], "command": "duplicate_line" }, { "keys": ["ctrl+q"], "command": "toggle_comment", "args": { "block": false } },]其中按键配置,为了适应以前用的 notepad++,所以 ctrl+q 设置为了行注释,原来的注释是切换录制宏,对我来说没用。
Duplicate Line:复制一行,Ctrl+Shift+D Delete Line:删除一行,Ctrl+Shift+K Comment(注释)-> Toggle Comment:注释选中的代码,Ctrl+/ Toggle Block Comment:可以显示注释,Ctrl+Shift+/ 3、Text(对文件的编辑命令)-> Insert Line Before:在光标所在行的上一行插入一个新行,Ctrl+Shift+Enter ...
reopen_last_file super + shift + t duplicate_line super + shift + d delete_word super + delete switch_file super + alt + left new_file super + n close super + w toggle_full_screen super + ctrl + f json formmat ⌘ ⌃ J1.2...
{ "keys": ["ctrl+shift+d"], "command": "duplicate_line" }, { "keys": ["ctrl+`"], "command": "show_panel", "args": {"panel": "console", "toggle": true} }, { "keys": ["ctrl+space"], "command": "auto_complete" }, ...
line upctrl+shift+downswap line downctrl+backspacedelete wordctrl+shift+backspacerun macro filectrl+deletedelete wordctrl+shift+deleterun macro filectrl+/当前行注释状态切换ctrl+shift+/当前位置注释状态切换ctrl+j选择标签内容,将后继行附加到行尾ctrl+shift+dduplicate linectrl+`show panelctrl+spaceauto...
⌘⇧D复制粘贴当前行(减少多余的粘贴)| Duplicate line ⌘J拼接行(css格式化时挺有用)| join...
Several pre-made plugins come with Sublime Text 2, you can find them in thePackages/Defaultdirectory: Packages/Default/delete_word.pyDeletes a word to the left or right of the cursor Packages/Default/duplicate_line.pyDuplicates the current line ...