Visual Studio Code使用相关

  1. 自动显示提示
    自动显示提示的快捷键是Ctrl+Space, 但是中文输入法占了这个热键, 需要关闭非常的麻烦.
    在注册表里有这些目录

    HKCU\Control Panel\Input Method\Hot Keys\
    HKU\.DEFAULT\Control Panel\Input Method\Hot Keys\
    HKU\S-1-5-19\Control Panel\Input Method\Hot Keys\
    HKU\S-1-5-20\Control Panel\Input Method\Hot Keys\
    HKU\S-1-5-21-3973068761-148523991-3394759106-1002\Control Panel\Input Method\Hot Keys
    

    1070子项中分别找到Key Modifiers=02c00000, Virtual Key=20000000的子目录, 将这些键值改成Key Modifier=00c00000, Virtual Key=ff000000即可. 只改第一条后注销并登录即可. 如不行再考虑后四条.

  2. 设置文件

    "git.path": "D:\\software\\Git\\cmd\\git.exe",
    "terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe",
    "files.autoSave": "afterDelay",
    "files.autoGuessEncoding": true,//自动识别编码
    "window.title": "${dirty}${activeEditorShort}${separator}${rootPath}",
    "editor.wordWrap": "on",
    "workbench.statusBar.feedback.visible": false,//取消反馈图标
    
  3. 扩展

    1. Latex Workshop
      需要安装MiKTeX
      需要安装latexmk库
      需要安装Perl
      需要安装SyncTeX. 从链接将synctex.exe和kpathsea623.dll放到\MiKTeX 2.9\miktex\bin\x64.
      有中文的话要\usepackage{xeCJK}, 行首添加% !TEX program = xelatex
      文件路径要为英文, 否则SyncTeX Forward Locating用不了
      //latex-workshop设置文件
      "latex-workshop.view.pdf.viewer": "tab",
      "latex-workshop.synctex.afterBuild.enabled": true,
      "latex-workshop.showContextMenu": true,
      "latex-workshop.view.pdf.external.command": {
      	"command": "D:\\应用程序\\Acrobat\\Acrobat\\Acrobat.exe",
      	"args": [
      		"%PDF%"
      	]
      },
      
    2. Python
      //python设置文件
      "python.autoComplete.addBrackets": true,
      
    3. Remote Development
      1. 安装Remote Development需要5个插件和最新的VSCode
        1. Remote Development->Download extension
        2. Remote - Containers
        3. Remote - WSL
        4. Remote - SSH
        5. Remote - SSH: Editing Configuration Files
        6. 最新版VSCode
      2. 需要在远程服务器上安装serverStackOverflowgithub
        1. Attempt to connect, let it fail
        2. On server, get the commit id
          $ ls ~/.vscode-server/bin/553cfb2c2205db5f15f3ee8395bbd5cf066d357d
          ID也可以通过观察本地VSCode->About得到
        3. Download tarball replacing $COMMIT_ID with the the commit number from the previous stephttps://update.code.visualstudio.com/commit:$COMMIT_ID/server-linux-x64/stable
        4. Move tarball to ~/.vscode-server/bin/$COMMIT_ID/vscode-server-linux-x64.tar.gz
        5. Extract tarball in this directory
          $ cd ~/.vscode-server/bin/$COMMIT_ID
          $ tar -xvzf vscode-server-linux-x64.tar.gz --strip-components 1
          
        6. Connect again
  4. VSCode Snippets(ref)
    可以使用placeholder和默认变量如$TM_LINE_NUMBER.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值