Loading

vs code settings

通用设置 settings.json (ctrl+,)

安装Jetbrains Mono Microsoft Yahei UI字体,Darcula Theme主题,vscode-iconsvim插件

{
    "workbench.iconTheme": "vscode-icons",
    "workbench.colorTheme": "Darcula",

    "editor.fontFamily": "'Jetbrains Mono', 'Microsoft Yahei UI', 'Fira Code'",
    "editor.fontSize": 13,
    "editor.fontLigatures": true,
    "editor.fontWeight": "400",
    "editor.lineHeight": 20,

    "vim.handleKeys": {
        "<C-a>": false,
        "<C-f>": false,
        "<C-k>": false,
        "<C-s>": false,
        "<C-p>": false,
        "<C-n>": false
    },
    "vim.useSystemClipboard": true
}

键盘快捷键 keybindings.json (ctrl+k, ctrl+s)

  • 在vim的输入模式使用alt+hjkl控制光标移动。如果直接在快捷键设置页修改,打开beybindings.json可看到添加了新组合键并禁用了原组合键,实际可以无需禁用原组合键(即可以多个组合键对应同一功能)。
  • 像 jetbrains 那样 ctrl + / 注释代码后自动移到下一行 (需要multi-command插件)
// 将键绑定放在此文件中以覆盖默认值
[
{ "key": "alt+l", "command": "cursorRight", "when": "textInputFocus" },
{ "key": "alt+h", "command": "cursorLeft", "when": "textInputFocus" },
{ "key": "alt+j", "command": "cursorDown", "when": "textInputFocus" },
{ "key": "alt+k", "command": "cursorUp", "when": "textInputFocus" },
{ "key": "ctrl+/", "command": "extension.multiCommand.execute", "when": "editorTextFocus",
    "args": {
        "sequence": [
            "editor.action.commentLine",
            "cursorDown"
        ]
    }
}
]

https://stackoverflow.com/a/72989874

将vscode加入右键菜单

相应.reg文件内容:

  • 空白处右键显示“Open with Code”
Windows Registry Editor Version 5.00
 
[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode]
@="Open with Code"
"Icon"="D:\\Program Files\\VSCode\\Code.exe"
 
[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode\command]
@="\"D:\\Program Files\\VSCode\\Code.exe\" \"%V\""
  • 文件右键显示“Open with Code”
Windows Registry Editor Version 5.00
 
[HKEY_CLASSES_ROOT\*\shell\VSCode]
@="Open with Code"
"Icon"="D:\\Program Files\\VSCode\\Code.exe"
 
[HKEY_CLASSES_ROOT\*\shell\VSCode\command]
@="\"D:\\Program Files\\VSCode\\Code.exe\" \"%1\""
  • 文件夹右键显示“Open with Code”
Windows Registry Editor Version 5.00
 
[HKEY_CLASSES_ROOT\Directory\shell\VSCode]
@="Open with Code"
"Icon"="D:\\Program Files\\VSCode\\Code.exe"
 
[HKEY_CLASSES_ROOT\Directory\shell\VSCode\command]
@="\"D:\\Program Files\\VSCode\\Code.exe\" \"%V\""

其他插件:

  • Better PageUp / PageDown (russelldavis.better-pageup-pagedown)
  • Bracket Pair Colorizer (coenraads.bracket-pair-colorizer)

VsCode写Python代码
python注释的几种风格

posted @ 2020-01-27 14:23  dylanchu  阅读(172)  评论(0编辑  收藏  举报