高级服装定制网站,手机开网店的免费平台,平台外宣推广技巧,网站建设教程ppt开发语言php
实现输入[ 得到 [];的效果
[win]ctrlp,[mac]superp 输入keyboard 选择 在json文件里增加(目前有缺陷,sublime的设置是比较完美的.或者phpstorm默认不需要配置):
{key: [,command: editor.action.insertSnippet的效果
[win]ctrlp,[mac]superp 输入keyboard 选择 在json文件里增加(目前有缺陷,sublime的设置是比较完美的.或者phpstorm默认不需要配置):
{key: [,command: editor.action.insertSnippet,args: {snippet: [$1];},when: editorTextFocus !editorHasSelection editorLangId php /^\\s*\\$\\w\\s*\\s*$/.test(editor.document.lineAt(editor.selection.active.line).text) /\\$$/.test(editor.document.lineAt(editor.selection.active.line).text) !/\\bstring\\.quoted\\./.test(editor.document.languageId)}实现alt; (或者其他快捷键)行末尾加;
方式1:直接安装扩展 Semicolon Insertion Shortcut 方式2(推荐): 1.安装扩展macros,(很强大,其他用法直接看扩展文档) 2.ctrlp 输入setting ,打开用户设置 3.填入以下内容(待生效的宏)
macros: {end_semicolon: [// 末尾加分号cursorLineEnd,{command: type,args: {text: ;}}]
}4.ctrlp 输入keyboard,选择打开键盘快捷方式(json) ,填入内容
{key: alt;,command: macros.end_semicolon
}