.vscode folder

https://stackoverflow.com/questions/32964920/should-i-commit-the-vscode-folder-to-source-control

Check in the .vscode folder if you want to share settings, task configuration and debug configuration with the team.

I think generally it makes sense to share settings (e.g. whitespace vs tabs) with the team if you want to enforce settings in a team.

We in the VS Code team share debug and task specific settings as well because we want our team to have the same set of debug targets and task targets for VS Code.

 

Btw you do not need to have a .vscode folder in your project for settings. You can also configure settings on a user level.

 

 

https://code.visualstudio.com/docs/getstarted/settings

User and Workspace Settings

It is easy to configure VS Code to your liking through settings. Nearly every part of VS Code's editor, user interface, and functional behavior have options you can modify.

VS Code provides two different scopes for settings:

  • User These settings apply globally to any instance of VS Code you open
  • Workspace These settings are stored inside your workspace in a .vscode folder and only apply when the workspace is opened. Settings defined on this scope override the user scope.

Creating User and Workspace Settings

The menu command File > Preferences > Settings (Code > Preferences > Settings on Mac) provides entry to configure user and workspace settings.

You are provided with a list of Default Settings.

Copy any setting that you want to change to the appropriate settings.json file.

The tabs on the right let you switch quickly between the user and workspace settings files.

 

You can also open the user and workspace settings from the Command Palette (Ctrl+Shift+P) with Preferences: Open User Settings and Preferences: Open Workspace Settings or use the keyboard shortcut (Ctrl+,).

 

In the example below, we disabled line numbers in the editor and configured line wrapping to wrap automatically based on the size of the editor.

 

 

 

作者:Chuck Lu    GitHub    
posted @   ChuckLu  阅读(709)  评论(0编辑  收藏  举报
编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
点击右上角即可分享
微信分享提示