When I'm opening settings using Preferences: Open Settings (JSON) I'm getting screen like this:
But in VSCode videos/tutorials I see people somehow have splitted window, with default settings on the left and user/workspace setting on the right:
How I can enable it?
===========================
EDIT:
I found "workbench.settings.openDefaultSettings" option and set it to true, but still my UI is different from desired on screenshot above ( I don't see search box for searching settings, also I don't see the message Place your settings in the right ... to override):
As mentioned #Juraj Kocan in comments, it happens after last VS Code updates.
This is Github issue related to this new "feature"
This one helped me:
"workbench.settings.useSplitJSON": true,
"workbench.settings.editor": "json",
How to Get to the JSON settings in Newer Versions of VS Code
In the latest versions of VS Code, you can convert back to the split JSON settings editor by changing the following settings in the (now standard) UI settings editor:
Workbench > Settings: Editor
Change from UI to json
Workbench > Settings: Use Split JSON
Checkmark to enable the option
after making this change, VS Code will open its settings as a JSON file, like in older versions of the application, rather than in the new UI. This allows you to make the changes that other answers provide, directly in the JSON (if you can find the right place and file to make them in..)
NOTE: Whether or not you actually want to use the JSON settings is a different question. Most of the time, the settings search function allows finding the same settings in the new UI. Sometimes it is difficult to get search to work though, especially if the settings are worded differently in the new UI style. There may also be cases where extensions haven't been updated to accommodate the new UI setting style, and so there is no option but to enter the JSON directly.
Not sure what do you mean by "Default".
steps to open setting by keyboard are:
press Ctrl+p (an input command line would appear at the top.)
press >
A List will appear like that in image. (search preference for all vs code settings)
Related
In VS code how can I see the current value of a specify setting variable?
For example: I have the Code Runner extension installed. In the Feature contribution page I saw that it has a setting variable
code-runner.executorMap (Set the executor of each language.)
How can see the current value of this setting? Is there a way to display this value? Or do I need to trawl through the different JSON setting files (Default/User/Workspace) to then determine its current value?
(1) You can view the value of many specific setting variables via the settings editor in VS Code. There's a web page describing all aspects of that, including settings for extensions.
To modify user settings, you'll use the Settings editor to review and change VS Code settings.
To open the Settings editor, use the following VS Code menu command:
On Windows/Linux - File > Preferences > Settings
On macOS - Code > Preferences > Settings
You can also open the Settings editor from the Command Palette (⇧⌘P) with Preferences: Open Settings or use the keyboard shortcut (⌘,).
(2) However some settings - like the one you mention (code-runner.executorMap) - cannot directly be viewed in the settings editor. They just show up with a "Edit in settings.json" link.
When you click that link VS Code will possibly add the default value for that variable to your user or workspace settings file. Be aware of this.
Maybe you can use this https://code.visualstudio.com/api/references/vscode-api#WorkspaceConfiguration.
const myWorkbench = vscode.workspace.getConfiguration('myWorkbench')
const yourConfigValue = myWorkbench.get('yourConfigValue')
Where I can find good documentation for every available settings.json configuration option so I can configure VS code however I like to?
There isn't an official maintained list of everything, but you can find some guides in the VS Code Documentation.
For theme color reference, you can see the list at Theme Color documentation.
The closest to what you want may be pressing Ctrl+, (or by using the gear menu in the bottom left), you can open a GUI that will show all configurable settings and allow you to search them. For some things, it will tell you to edit it in the settings.json instead, though. In which case, you may need to to look at the documentation for usage instructions.
Can't find a setting to show description on the right side. Default user settings on MacOS.
toggleSuggestionDetails command gives details (if you won't hide it, details will appear every time). Default keybinding for this command on Mac is ctrl+space, which prevents to expand a widget (cause language changing uses the same keybinding). I just chose other keys to show more without changing user settings (but added "editor.suggest.showStatusBar": true since it seemed useful to me).
Using the quick open shortcut (CTRL/CMD + P) to navigate files always put the recently opened files first, then the file results.
I would like it to show me only the file results, or at least put them first, but I can't find any options that would do this. Does it exists? Or do I just lack the right term to search ?
Use this in your VS Code settings (Code -> Preferences -> Settings in macOS, File > Preferences > Settings on Windows/Linux). Open the Settings in JSON format (document icon on the top right of the tab bar), and add:
"search.quickOpen.includeHistory": false
I am adding this answer just to give a description of that property. All credits to #Hejazzman.
"search.quickOpen.includeHistory": false, // by default is true
This setting was released of VS code version 1.28 in September 2018. According to the official release documentation,
A new setting allows you to control if files that were recently opened should be part of the Quick Open file picker. By default, files that were recently opened will appear to the top of the search and other files from the workspace below. If you would prefer to not see recently opened files on top, you can change this setting to false.
By default, the markdown preview in VS Code opens on the Side. I do this action quite a bit and I always have to drag a drop it to the bottom of the current tab.
I looked in my settings to see if there was a way to change this default behavior and didn't see anything that looks like it would change it.
Any suggestions on how to change this default setting?
You can try to use one of the extensions that allow to execute multiple commands and do:
markdown.showPreviewToSide
workbench.action.toggleEditorGroupLayout