zoukankan      html  css  js  c++  java
  • 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可看到添加了新组合键并禁用了原组合键,实际可以无需禁用原组合键(即可以多个组合键对应同一功能):

    // Place your key bindings in this file to override the defaultsauto[]
    [
        {
            "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"
        }
    ]
    

    将vscode加入右键菜单

    相应.reg文件内容:

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

    其他插件:

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

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

  • 相关阅读:
    GridView绑定模板格式化日期总结
    统计静态页点击量
    行业网seo诊断
    查看sql执行效率
    ItemCommandVSItemDataBound
    【转帖】我眼中的flash和silverlight
    修改SQLserver数据库中的a表的一列等于b表的一列
    过河卒
    最长公共子序列LCS
    情感日记:在中国地质大学的日子
  • 原文地址:https://www.cnblogs.com/dylanchu/p/12235958.html
Copyright © 2011-2022 走看看