vscode使用

VScode自动调整格式(Shift+Alt+F) - 简书 (jianshu.com)

vscode 设置 tab 为四个空格_abbcccdde的博客-CSDN博客_vscode设置tab为4个空格

[生产力]VSCode必备插件-C/C++开发_清凉简装的博客-CSDN博客_vscode插件c++

(370条消息) vscode设置保存时自动格式化代码,让代码自动缩进对齐,让代码更简洁_中南自动化学院“智能控制与优化决策“至渝的博客-CSDN博客_vscode保存自动缩进

(595条消息) vscode (markdown)常用插件_vscodemarkdown插件_懒惰的胖猪的博客-CSDN博客

vscode中使用Markdown - 知乎 (zhihu.com)

vscode launch.json 打开

.vscode/launch.json

Vscode参数输入_vscode添加参数调试_Fighting_1997的博客-CSDN博客

{
   "version": "0.2.0",
   "configurations": [
      {
         "name": "Python: Current File with Arguments",
         "type": "python",
         "request": "launch",
         "program": "${file}",
         "args": ["--foo", "bar"]
      }
   ]
}

修改字体

'Droid Sans Mono', 'monospace', monospace

(717条消息) vscode 添加全局宏定义_vscode 宏定义_cdh4869的博客-CSDN博客

2022年最受欢迎的十大VSCode扩展程序 - 知乎 (zhihu.com)

GitLens

(673条消息) vscode 插件 GitLens_倔强的小绵羊的博客-CSDN博客

vscode使用_第1张图片

vscode显示120字符或者80字符提示线

(386条消息) vscode常用设置___Benco的博客-CSDN博客_vscode设置

VSCode自动识别文件编码

VSCode自动识别文件编码_686967656869的博客-CSDN博客_vscode自动识别编码

自动提示与代码导航

Visual Studio Code开发Qt应用程序实现自动提示、语法高亮、代码导航、编译和调试_岬淢箫声-CSDN博客

在.vscode文件夹下新建c_cpp_properties.json,代码如下:

{
    "version": 3,
    "configurations": [{
        "name": "msvc2015-x64",
        "intelliSenseMode": "msvc-x64",
        "includePath": [
            "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/include",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/Qt3DAnimation",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/Qt3DCore",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/Qt3DExtras",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/Qt3DInput",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/Qt3DLogic",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/Qt3DQuick",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/Qt3DQuickAnimation",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/Qt3DQuickExtras",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/Qt3DQuickInput",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/Qt3DQuickRender",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/Qt3DQuickScene2D",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/Qt3DRender",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtAccessibilitySupport",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtANGLE",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtBluetooth",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtCharts",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtConcurrent",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtCore",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtDataVisualization",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtDeviceDiscoverySupport",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtEglSupport",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtEventDispatcherSupport",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtFbSupport",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtFontDatabaseSupport",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtGui",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtHelp",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtLocation",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtMultimedia",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtMultimediaQuick_p",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtMultimediaWidgets",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtNetwork",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtNetworkAuth",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtNfc",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtOpenGL",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtOpenGLExtensions",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtPacketProtocol",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtPlatformCompositorSupport",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtPlatformHeaders",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtPositioning",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtPrintSupport",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtPurchasing",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtQml",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtQmlDebug",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtQuick",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtQuickControls2",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtQuickParticles",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtQuickTemplates2",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtQuickTest",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtQuickWidgets",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtRemoteObjects",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtRepParser",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtScxml",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtSensors",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtSql",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtSvg",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtTest",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtThemeSupport",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtUiPlugin",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtUiTools",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtWebChannel",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtWebEngineCore",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtWebEngineWidgets",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtWebSockets",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtWebView",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtWidgets",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtXml",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtXmlPatterns",
            "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtZlib",
            "C:/Program Files (x86)/Windows Kits/10/Include/10.0.15063.0/shared",
            "C:/Program Files (x86)/Windows Kits/10/Include/10.0.15063.0/ucrt",
            "C:/Program Files (x86)/Windows Kits/10/Include/10.0.15063.0/um",
            "${workspaceRoot}"
        ],
        "browse": {
            "path": [
                "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/include",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/Qt3DAnimation",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/Qt3DCore",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/Qt3DExtras",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/Qt3DInput",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/Qt3DLogic",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/Qt3DQuick",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/Qt3DQuickAnimation",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/Qt3DQuickExtras",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/Qt3DQuickInput",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/Qt3DQuickRender",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/Qt3DQuickScene2D",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/Qt3DRender",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtAccessibilitySupport",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtANGLE",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtBluetooth",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtCharts",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtConcurrent",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtCore",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtDataVisualization",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtDeviceDiscoverySupport",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtEglSupport",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtEventDispatcherSupport",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtFbSupport",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtFontDatabaseSupport",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtGui",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtHelp",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtLocation",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtMultimedia",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtMultimediaQuick_p",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtMultimediaWidgets",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtNetwork",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtNetworkAuth",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtNfc",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtOpenGL",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtOpenGLExtensions",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtPacketProtocol",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtPlatformCompositorSupport",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtPlatformHeaders",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtPositioning",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtPrintSupport",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtPurchasing",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtQml",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtQmlDebug",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtQuick",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtQuickControls2",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtQuickParticles",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtQuickTemplates2",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtQuickTest",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtQuickWidgets",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtRemoteObjects",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtRepParser",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtScxml",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtSensors",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtSql",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtSvg",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtTest",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtThemeSupport",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtUiPlugin",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtUiTools",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtWebChannel",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtWebEngineCore",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtWebEngineWidgets",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtWebSockets",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtWebView",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtWidgets",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtXml",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtXmlPatterns",
                "C:/Qt/Qt5.9.1/5.9.1/msvc2015_64/include/QtZlib",
                "C:/Program Files (x86)/Windows Kits/10/Include/10.0.15063.0/shared",
                "C:/Program Files (x86)/Windows Kits/10/Include/10.0.15063.0/ucrt",
                "C:/Program Files (x86)/Windows Kits/10/Include/10.0.15063.0/um",
                "${workspaceRoot}"
            ]
        }
    }]
}

Bookmarks书签

VScode 插件 bookmarks_Cainell的博客-CSDN博客_vscode插件bookmarks

Ctrl+alt+K 创建或消除书签
ctrl+alt+j 跳转到前一个书签

ctrl+alt+l 跳转到后一个书签

vscode remote远程开发详解,mac、windows配置vscode remote远程开发

vscode remote远程开发详解,mac、windows配置vscode remote远程开发 · 大专栏

remote-ssh

Host test-server # 链接名
    HostName <192.168.207.130> # ip地址
    User  # 用户名
    Port 22

VScode占用内存过大,系统卡顿问题解决

VScode占用内存过大,系统卡顿问题解决_无专精则不能成,无涉猎则不能通-CSDN博客_vscode占用内存过大

VSCode配置c_cpp_properties.json文件

VSCode配置c_cpp_properties.json文件_baidu_38634017的博客-CSDN博客_c_cpp_properties.json

使用 VSCode 远程访问代码以及远程 GDB 调试

使用 VSCode 远程访问代码以及远程 GDB 调试

vscode C++远程调试运行(学习C++用) - 知乎

修改vscode选中代码内容背景颜色(很简单)_我可以睡到中午吗-CSDN博客

Vscode选中变量高亮颜色及注释颜色更改

Vscode选中变量高亮颜色及注释颜色更改 - 小翁同学 - 博客园

在setting.json中添加如下字段即可,颜色可以自定义修改,选择自己喜欢的颜色即可。


    "workbench.colorCustomizations": {
        "editor.selectionBackground": "#0066ff80",
        "editor.selectionHighlightBackground": "#c5293e"
    },

结果如下,更加nice

settings文件怎么打开? VSCode打开并配置settings.json文件的技巧

https://www.jb51.net/softjc/730336.html

vscode使用_第2张图片

VSCode 如何格式化或美化js/css代码

https://jingyan.baidu.com/article/ca00d56c133f5fe99eebcfb4.html

  1. 如果要进行代码美化(换行),首先点击左侧的扩展按钮,然后在扩展商店搜索Beautify,然后下载第一个插件即可。

    vscode使用_第3张图片

  2. 安装后重新载入VSCode,按下f1打开命令,搜索Beautify,点击Beautify file美化整个文件。

    vscode使用_第4张图片

  3. 6

    如图,是美化之后的效果。代码被自动换行,也进行了格式化。这个美化操作支持多种格式的源代码。

    vscode使用_第5张图片

Visual Studio Code (vscode) 配置 C / C++ 环境

Visual Studio Code (vscode) 配置 C / C++ 环境 - 步平凡 - 博客园

vscode使用_第6张图片

vscode左下角显示大纲(显示所有函数方法)

vscode左下角显示大纲(显示所有函数方法)_shuipaopaoJin的博客-CSDN博客_vscode 大纲

方法二:显示大纲(在编辑器左下角显示,方便查看)

Shift+Ctl+P -> View: Quick Open View -> 大纲 outline

配置跳转

VSCode配置c_cpp_properties.json文件_baidu_38634017的博客-CSDN博客_c_cpp_properties.json

https://jingyan.baidu.com/article/b7001fe1da1f330e7282dd39.html

Visual Studio Code 配置C/C++环境 - 别依梦雨轩 - 博客园

生成c_cpp_properties.json:

vscode使用_第7张图片

vscode 选择代码段高亮插件

vscode 选择代码段高亮插件_Root-CSDN博客_vscode高亮插件

VS Code配置Source Insight的高亮功能(view:Highlight Word)

VS Code配置Source Insight的高亮功能(view:Highlight Word) - 知乎

"highlightwords.colors": [
        {"dark": "yellow" },
        {"dark": "Cyan" },
        {"dark": "Pink" },
        {"dark": "LightGreen" },
        {"dark": "LightSteelBlue" },
        {"dark": "Plum" }
        ],
        "highlightwords.box": {
            "light": true,
            "dark": false
        }


 

VSCode设置大小写转换的快捷键 - sufaith - 博客园

vscode使用_第8张图片

如何在VScode启用保存文件时删除行尾空格-百度经验

VS Code 使用_51CTO博客_vs code insiders

ips 总结
1. VSCode显示空格和tab符号

1.打开setting,在搜索框中输入renderControlCharacters,选中勾选框,即可显示tab

VS Code 使用_Code

2.在搜索框中输入renderWhitespace,选择all,即可显示空格.

VS Code 使用_Code_02
插件扩展

MarkDown在VSCode环境下使用_vscode markdown_LLyyxxx00的博客-CSDN博客

vscode终端里敲命令,打开一个新的窗口.

✗ code ../xxx

vscode免密登陆服务器远程编辑

vscode免密登陆服务器远程编辑_凉-CSDN博客_vscode 免密登陆

vscode SSH 保存密码自动登录服务器

vscode SSH 保存密码自动登录服务器 - 简书

你可能感兴趣的:(c/c++,vscode,qt,1024程序员节)