快捷鍵設(shè)置
// Place your key bindings in this file to override the defaults
[
{
"key": "ctrl+alt+j",
"command": "cursorLeft",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+k",
"command": "cursorRight",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+u",
"command": "cursorUp",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+i",
"command": "commandId",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+i",
"command": "cursorDown",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+oem_1",
"command": "cursorEnd",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+h",
"command": "cursorHome",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+alt+l",
"command": "editor.action.formatSelection",
"when": "editorHasDocumentFormattingProvider && editorHasSelection && editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+alt+l",
"command": "-editor.action.formatSelection",
"when": "editorHasDocumentFormattingProvider && editorHasSelection && editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+alt+l",
"command": "editor.action.formatDocument",
"when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+alt+l",
"command": "-editor.action.formatDocument",
"when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+d",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+down",
"command": "-editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+w",
"command": "editor.action.addSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "ctrl+y",
"command": "editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+shift+k",
"command": "-editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+k ctrl+9",
"command": "-editor.unfoldAllMarkerRegions",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+s",
"command": "workbench.action.files.saveAll"
},
{
"key": "ctrl+k s",
"command": "-workbench.action.files.saveAll"
},
{
"key": "ctrl+alt+t",
"command": "workbench.action.tasks.runTask"
},
{
"key": "alt+enter alt+enter",
"command": "python.execInTerminal"
},
{
"key": "shift+enter",
"command": "-python.execSelectionInTerminal",
"when": "editorFocus && !findInputFocussed && !replaceInputFocussed && editorLangId == 'python'"
},
{
"key": "ctrl+alt+b",
"command": "bookmarks.toggle",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+k",
"command": "-bookmarks.toggle",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+p",
"command": "bookmarks.jumpToPrevious",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+j",
"command": "-bookmarks.jumpToPrevious",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+n",
"command": "bookmarks.jumpToNext",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+l",
"command": "-bookmarks.jumpToNext",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+c",
"command": "bookmarks.clear"
},
{
"key": "alt+e",
"command": "workbench.action.toggleFullScreen"
},
{
"key": "f11",
"command": "-workbench.action.toggleFullScreen"
},
{
"key": "ctrl+shift+c",
"command": "workbench.action.tasks.runTask",
"args": "compile"
},
{
"key": "ctrl+shift+t",
"command": "-workbench.action.reopenClosedEditor"
},
{
"key": "ctrl+alt+z",
"command": "workbench.action.navigateBack"
},
{
"key": "ctrl+alt+x",
"command": "workbench.action.navigateForward"
}
]
調(diào)試本地html 設(shè)置
- 安裝插件
debugger from chrome
- 打開launch.json,并配置如下
{
// 使用 IntelliSense 了解相關(guān)屬性。
// 懸停以查看現(xiàn)有屬性的描述钝腺。
// 欲了解更多信息瞻想,請訪問: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [{
"name":"Launch index.html",
"type":"chrome",
"request":"launch",
"sourceMaps":true,
"file":"${workspaceFolder}/index.html"
}
]
}
其中file路徑需要換成自己想要打開的html路徑,即可
快捷鍵
ctrl + alt + ?/? => 將當(dāng)前打開的tab頁移動到左或右分屏(分組)中
回退到上次鼠標(biāo)位置
ctrl + alt + z (自定義快捷鍵) 同 alt + ?
書簽 需要bookmarks插件
Alt + B (自定義快捷鍵) 或者 Ctrl + Alt + B => bookmarks.toggle
Alt + C (自定義快捷鍵) 或者 Ctrl + Alt + C => bookmarks.clear
Alt + V (自定義快捷鍵) 或者 Ctrl + Alt + P => bookmarks.jumpToPrevious
Alt + N (自定義快捷鍵) 或者 Ctrl + Alt + N => bookmarks.jumpToNext
刪除當(dāng)前頁所有空行
Ctrl + H 調(diào)出搜索替換工具框,然后在搜索中輸入正則表達式如下
^\s*(?=\r?$)\n
并且選中使用正則表達式復(fù)選框(快捷鍵Alt + R) , 然后替換為空