-
Notifications
You must be signed in to change notification settings - Fork 29.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Explore improvements to settings editor #41040
Comments
@roblourens I liked the one which you demoed in slack that showing some affordance on hover and clicking on it shows the context menu. Not sure if there are improvements on top of it. |
What if left side indicated the effective value and the comment said |
Click on value to edit: @patrys One complication is that the setting can be overridden by User, Workspace, or Folder settings. If we show the value for the currently selected settings scope, it might confuse someone if that setting is overridden in a different scope. And if it's overridden differently for different folders in a multiroot workspace, then there is no one "effective value". |
If there are multiple values then which scope would be affected when I click to change the value? |
The one that's selected on the right - same as what happens currently when you edit a setting using the pencil button. This situation is why this isn't just a dropdown. |
@roblourens How about providing some assistance to inform users that the value change will happen in the right hand side editor? Otherwise, it might confuse new users who are not aware of this. |
Demo in https://github.com/microsoft/vscode/tree/roblou/prefsSearchBadges |
The edit menu is triggered on the focused setting with Demo in https://github.com/Microsoft/vscode/tree/roblou/editPreferenceCommand |
Adds a save listener to the configuration-editing extension, which parses the document and fixes missing commas, as best as it can. Prototype: https://github.com/Microsoft/vscode/tree/roblou/autofixSettingsCommas |
@roblourens Since autocomplete knows that it's completing a setting name, could it not, at the moment you accept a setting name as a suggestion, take care of inserting a missing comma at the end of the previous non-empty line? It seems that this would be less magic and less error-prone than trying to fix an entire file on save. |
It should work whether you are using intellisense, or typing the full name, or copy/pasting from the left side, or anything else. Also, the intellisense completion would be changing the previous line at some arbitrary position, which I think isn't possible for basic completions. |
Moving to February to follow up on further improvements |
My experience with editing settings would be much better if there was a "Open Raw User Settings" command. Always splitting the editor makes it hard to edit the settings while having them to the side, if you do so in a small-ish screen (<= 15"). |
There's a setting, |
But that's not something you always want, just sometimes. An additional command would be much more usable. |
@roblourens pushing again for an |
I opened #49495 for it |
Things to investigate
CodeLens to edit valueMove pencil icon to valueIt actually was on the right side previously. It may actually be less noticeable after a long value, it may wrap to the next line, etc. Putting it in between the key/value seems weird, and we don't want it to overlap any text.Make pencil icon always visible<enter>
nav order Settings navigation order should be more predictable #42126Should go over all overridden settings firstNavigate through the other settings domains?lcov
settings in vscode workspace settingsThe text was updated successfully, but these errors were encountered: