From c06bb2ea7b36055c14903de1affc26a9cefb2437 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Sun, 28 Apr 2024 20:28:57 -0500 Subject: [PATCH] Add Find The Location Of User Settings JSON File as a VSCode TIL --- README.md | 3 +- ...the-location-of-user-settings-json-file.md | 31 +++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 vscode/find-the-location-of-user-settings-json-file.md diff --git a/README.md b/README.md index b5d4f1c..e06d555 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ pairing with smart people at Hashrocket. For a steady stream of TILs, [sign up for my newsletter](https://crafty-builder-6996.ck.page/e169c61186). -_1422 TILs and counting..._ +_1423 TILs and counting..._ --- @@ -1629,6 +1629,7 @@ _1422 TILs and counting..._ - [Add The VSCode CLI To Your Path](vscode/add-the-vscode-cli-to-your-path.md) - [Advance Through Search Results](vscode/advance-through-search-results.md) - [Enable Breadcrumbs For Version 1.26 Release](vscode/enable-breadcrumbs-for-version-126-release.md) +- [Find The Location Of User Settings JSON File](vscode/find-the-location-of-user-settings-json-file.md) - [Open An Integrated Terminal Window](vscode/open-an-integrated-terminal-window.md) - [Pop Open The Quick Fix Window](vscode/pop-open-the-quick-fix-window.md) - [Step Through Project-Wide Search Results](vscode/step-through-project-wide-search-results.md) diff --git a/vscode/find-the-location-of-user-settings-json-file.md b/vscode/find-the-location-of-user-settings-json-file.md new file mode 100644 index 0000000..9b3b1d0 --- /dev/null +++ b/vscode/find-the-location-of-user-settings-json-file.md @@ -0,0 +1,31 @@ +# Find The Location Of User Settings JSON File + +There are a ton ways to customize and fine-tune VS Code. All of the settings +have defaults which can then be customized on a workspace and user level. +Typically you'll access these files within VS Code via the Command Palette. I +was curious though: since it is just a JSON file, surely I can view and modify +it with any editor. + +On a Mac, the user-level `settings.json` file is located at +`~/Library/Application\ Support/Code/User/settings.json`. + +Open it up and you might see something like this: + +```json +{ + "editor.formatOnSave": true, + "editor.defaultFormatter": "esbenp.prettier-vscode", + "window.zoomLevel": 1, + "workbench.editor.showTabs": "single" +} +``` + +A handful of settings with specific overrides. + +Feel free to edit what is in here or add other settings that you want to set. +Just make sure you know what you're doing and that you set valid values. + +The VS Code docs list [the locations of these files on other operating +systems](https://code.visualstudio.com/docs/getstarted/settings#_settings-file-locations). + +[source](https://stackoverflow.com/questions/53840644/location-of-vs-code-preferences)