vs code 設(shè)置

快捷鍵設(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) , 然后替換為空

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末训裆,一起剝皮案震驚了整個濱河市,隨后出現(xiàn)的幾起案子刚梭,更是在濱河造成了極大的恐慌藤为,老刑警劉巖,帶你破解...
    沈念sama閱讀 206,482評論 6 481
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件樊破,死亡現(xiàn)場離奇詭異,居然都是意外死亡唆铐,警方通過查閱死者的電腦和手機哲戚,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 88,377評論 2 382
  • 文/潘曉璐 我一進店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來或链,“玉大人惫恼,你說我怎么就攤上這事档押“难危” “怎么了?”我有些...
    開封第一講書人閱讀 152,762評論 0 342
  • 文/不壞的土叔 我叫張陵令宿,是天一觀的道長叼耙。 經(jīng)常有香客問我,道長粒没,這世上最難降的妖魔是什么筛婉? 我笑而不...
    開封第一講書人閱讀 55,273評論 1 279
  • 正文 為了忘掉前任,我火速辦了婚禮癞松,結(jié)果婚禮上爽撒,老公的妹妹穿的比我還像新娘。我一直安慰自己响蓉,他們只是感情好硕勿,可當(dāng)我...
    茶點故事閱讀 64,289評論 5 373
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著涯曲,像睡著了一般葡秒。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上呀舔,一...
    開封第一講書人閱讀 49,046評論 1 285
  • 那天粱栖,我揣著相機與錄音话浇,去河邊找鬼。 笑死闹究,一個胖子當(dāng)著我的面吹牛幔崖,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播渣淤,決...
    沈念sama閱讀 38,351評論 3 400
  • 文/蒼蘭香墨 我猛地睜開眼岖瑰,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了砂代?” 一聲冷哼從身側(cè)響起蹋订,我...
    開封第一講書人閱讀 36,988評論 0 259
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎刻伊,沒想到半個月后露戒,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 43,476評論 1 300
  • 正文 獨居荒郊野嶺守林人離奇死亡捶箱,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 35,948評論 2 324
  • 正文 我和宋清朗相戀三年智什,在試婚紗的時候發(fā)現(xiàn)自己被綠了。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片丁屎。...
    茶點故事閱讀 38,064評論 1 333
  • 序言:一個原本活蹦亂跳的男人離奇死亡荠锭,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出晨川,到底是詐尸還是另有隱情证九,我是刑警寧澤,帶...
    沈念sama閱讀 33,712評論 4 323
  • 正文 年R本政府宣布共虑,位于F島的核電站愧怜,受9級特大地震影響,放射性物質(zhì)發(fā)生泄漏妈拌。R本人自食惡果不足惜拥坛,卻給世界環(huán)境...
    茶點故事閱讀 39,261評論 3 307
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望尘分。 院中可真熱鬧猜惋,春花似錦、人聲如沸培愁。這莊子的主人今日做“春日...
    開封第一講書人閱讀 30,264評論 0 19
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽竭钝。三九已至梨撞,卻和暖如春雹洗,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背卧波。 一陣腳步聲響...
    開封第一講書人閱讀 31,486評論 1 262
  • 我被黑心中介騙來泰國打工时肿, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留,地道東北人港粱。 一個月前我還...
    沈念sama閱讀 45,511評論 2 354
  • 正文 我出身青樓螃成,卻偏偏與公主長得像,于是被迫代替她去往敵國和親查坪。 傳聞我的和親對象是個殘疾皇子寸宏,可洞房花燭夜當(dāng)晚...
    茶點故事閱讀 42,802評論 2 345

推薦閱讀更多精彩內(nèi)容