vscode常用设置
vscode打开的文件标签过多,换行显示

插件
vscode-icons
vscode中复制文件名 Copy file name
GitLens — Git supercharged 安装后可以直接在代码里看到谁在什么时候提交了代码
C++语法检查规则
配置编译器,让编译器用C++17的语法规则编译我们的代码。
vscod本身不是编译器,需要添加配置文件才具备编译 C++ 代码的功能
vscode 的默认语法检查规则还是 C++14。还需要把语法检查规则改成 C++17 的才行。
同时按住 shift + Ctrl + p 出现搜索框,在搜索框中输入 C/C++, 选择 “编辑配置文件(JSON)” 下面也有对应的英文版的显示。按下图设置成 “cStandard”: “gnu17”, “cppStandard”: “gnu++17”, 改完后保存,回到 C++17 代码处,错误提示消失。如果想改回 C++14 ,把相应地方的 17 改成 14 就可以了。
c_cpp_properties文件
{
    "configurations": [
        {
            "name": "Linux",
            "includePath": [
                "${workspaceFolder}/**"
            ],
            "defines": [],
            "compilerPath": "/usr/bin/gcc",
            "cStandard": "c17",
            "cppStandard": "gnu++17",
            "intelliSenseMode": "linux-gcc-x64"
        }
    ],
    "version": 4
}


自动换行
ctrl + shift + p  ->  Editor: Word Wrap

file encoding

    Do not communicate by sharing memory; instead, share memory by communicating.

 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号