Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to make a settings.json simply on a project?

When you want to make a different settings on a specific project, you will make .vscode/settings.json. I know how to make .vscode/settings.json. If I make that directory and file and name as .vscode and settings.json then those files will be functioning as the setting of the project of the directory.

But I'm lazy to do those all acts. Is there some simpler ways to make the settings.json file on each project directory? Like by using a shortcut key we could make the file, or just by using a button from a extension.

---updated on Nov 1st, 2022---

I think,

Select File > Preferences > Settings (or press Ctrl+,) and Select Workspace tab, and then changing any setting is the fastest way to make the .vscode/settings.json now. if you change any setting of there, immediately vscode will make the file. No other shortcut, but I think this is quite reasonable.

If you need to change some settings in vscode, vscode will make the .vscode/settings.json automatically.

like image 905
niddddddfier Avatar asked Nov 28 '25 06:11

niddddddfier


1 Answers

  • go to Settings UI, Ctrl+,, command Preferences: Open Settings (UI)
  • select Workspace tab
  • click Open Settings (JSON) button in top right corner

Or

Execute command: Preferences: Open Workspace Settings (JSON)


If you have a Multi Root Workspace you can save settings in the .code-workspace file or in the .vscode/settings.json file for a particular Folder

  • go to Settings UI, Ctrl+,, command Preferences: Open Settings (UI)
  • select Workspace tab or use Folder drop down
  • click Open Settings (JSON) button in top right corner

Or

Execute command: Preferences: Open Workspace Settings (JSON)

Or

Execute command: Preferences: Open Folder Settings (JSON)
and select the folder you want to modify the settings for

like image 63
rioV8 Avatar answered Nov 29 '25 23:11

rioV8



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!