VSCode学习【5】: setting.json的两种配置位置
json
适用于现代 C++ 的 JSON。
项目地址:https://gitcode.com/gh_mirrors/js/json

·
1、VSCode中setting.json的两种配置位置
VSCode 提供设置setting.json的两种方式:
User Settings(用户设置)
- Settings that apply globally to any instance of VS Code you open.(用户区,即全局,关联于用户。在某个window用户下打开任意vscode界面都会用此配置,即应用于该用户打开的所有工程
)Workspace Settings (工作区设置)
- Settings stored inside your workspace and only apply when the workspace is opened.(工作区设置是指使用vscode打开某个文件夹,在该文件夹下会创建一个名为.vscode的隐藏文件夹,文档位置为根目录/.vscode/setting.json(可自己创建,也可不创建),里面包含着仅适用于当前目录的vscode的设置,工作区的设置会覆盖用户设置
)
1.1 创建与设置User Settings中的settings.json
- 点击左下角齿轮图标,选择设置
- 在文本编辑器中找到settings.json
1.2 创建与设置Workspace Settings中的settings.json
- 点击左下角齿轮图标,选择命令面板
- 在搜索框输入:settings.json,并选中
参考1:https://blog.csdn.net/hj17629030978/article/details/106338714
参考2:https://blog.csdn.net/wu13534570560/article/details/109449283




适用于现代 C++ 的 JSON。
最近提交(Master分支:4 个月前 )
f06604fc
* :page_facing_up: bump the copyright years
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
* :page_facing_up: bump the copyright years
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
* :page_facing_up: bump the copyright years
Signed-off-by: Niels Lohmann <niels.lohmann@gmail.com>
---------
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
Signed-off-by: Niels Lohmann <niels.lohmann@gmail.com> 1 个月前
d23291ba
* add a ci step for Json_Diagnostic_Positions
Signed-off-by: Harinath Nampally <harinath922@gmail.com>
* Update ci.cmake to address review comments
Signed-off-by: Harinath Nampally <harinath922@gmail.com>
* address review comment
Signed-off-by: Harinath Nampally <harinath922@gmail.com>
* fix typo in the comment
Signed-off-by: Harinath Nampally <harinath922@gmail.com>
* fix typos in ci.cmake
Signed-off-by: Harinath Nampally <harinath922@gmail.com>
* invoke the new ci step from ubuntu.yml
Signed-off-by: Harinath Nampally <harinath922@gmail.com>
* issue4561 - use diagnostic positions for exceptions
Signed-off-by: Harinath Nampally <harinath922@gmail.com>
* fix ci_test_documentation check
Signed-off-by: Harinath Nampally <harinath922@gmail.com>
* address review comments
Signed-off-by: Harinath Nampally <harinath922@gmail.com>
* fix ci check failures for unit-diagnostic-postions.cpp
Signed-off-by: Harinath Nampally <harinath922@gmail.com>
* improvements based on review comments
Signed-off-by: Harinath Nampally <harinath922@gmail.com>
* fix const correctness string
Signed-off-by: Harinath Nampally <harinath922@gmail.com>
* further refinements based on reviews
Signed-off-by: Harinath Nampally <harinath922@gmail.com>
* add one more test case for full coverage
Signed-off-by: Harinath Nampally <harinath922@gmail.com>
* ci check fix - add const
Signed-off-by: Harinath Nampally <harinath922@gmail.com>
* add unit tests for json_diagnostic_postions only
Signed-off-by: Harinath Nampally <harinath922@gmail.com>
* fix ci_test_diagnostics
Signed-off-by: Harinath Nampally <harinath922@gmail.com>
* fix ci_test_build_documentation check
Signed-off-by: Harinath Nampally <harinath922@gmail.com>
---------
Signed-off-by: Harinath Nampally <harinath922@gmail.com> 1 个月前
更多推荐
所有评论(0)