vs code 设置

快捷键设置

// 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"
    }
]

调试本地html 设置

  • 安装插件debugger from chrome
  • 打开launch.json,并配置如下
{
    // 使用 IntelliSense 了解相关属性。 
    // 悬停以查看现有属性的描述。
    // 欲了解更多信息,请访问: 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 + ⬅/➡ => 将当前打开的tab页移动到左或右分屏(分组)中
回退到上次鼠标位置
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

删除当前页所有空行

Ctrl + H 调出搜索替换工具框,然后在搜索中输入正则表达式如下

^\s*(?=\r?$)\n

并且选中使用正则表达式复选框(快捷键Alt + R) , 然后替换为空

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 自定义设置格式规范: 代码在花括号"{}"中,设置与设置间要有逗号",",最后一项设置最后无需逗号,如下例子: 一...
    codeflame阅读 2,036评论 0 0
  • VSCode首选项配置 以下为stylus配置 eslint配置加上: 插件列表 Prettier - Code ...
    PYFang阅读 1,669评论 0 0
  • 文章来源:一. 快捷键设置 MAC 中得特殊键 MAC 中得特殊符号 :-- Command () : ⌘ ;-...
    hehtao阅读 16,149评论 0 7
  • win10快捷键大全大家可以来了解一下,今天小编带来了win10常用快捷键,很多朋友喜欢使用快捷键来操作电脑,那么...
    宁静消失何如阅读 5,941评论 0 38
  • 有时候你对自己说“我太粗心,太糟糕了,愚蠢了”对自己进行指责,我们需要体会自己的需求。这种需求要要能更好地促进生命...
    后知后觉的持续努力阅读 1,196评论 0 1