Is there a way to hide this:
I am doing videos using vscode and I would like to have an empty startup screen.
This can be disabled with Workbench > Tips: Enabled setting (toggle). Or just add "workbench.tips.enabled": false in settings.json
Not sure if this disables anything else though. This also leaves VS Code logo enabled. User and Workspace Settings Docs says:
When enabled, will show the watermark tips when no editor is open.
Related
In vscode, there is an option to chose which language I'm going to use when I make a new file. I accidentally clicked do not show for this setting/UI but I want it back. I tried googling it but I can't find any solutions. Is this is even changeable?
If you are talking about this feature, it can be re-enabled by changing the value of Workbench > Editor > Untitled: Hint (workbench.editor.untitled.hint) in the settings.
But without that feature you can still change language mode by clicking the button at the bottom right of the window.
I'm trying to master working with visual studio.
In the Intro Vieos the lecturer after opening User Settings shows that on the right side there are the default values for all settings and he can edit them by clicking on some icon beside each setting statement. Like the image below
I just do the same thing as he does. meaning I:
press ctrl+shift+p
search for Preferences: Open User Settings
and I click on it when found
But what I end up in does not show the default setting values on the right, beside a tab on the left to write my own customization. I need to see all the current default settings to decide which one I want to edit. How can I achieve that?
Thanks in advance.
I assume the lecturer uses an older version of Visual Studio Code. There was a change of the settings UI in August 2018, see here: https://code.visualstudio.com/updates/v1_27#_settings-editor
See this link to see how to use the settings UI: https://code.visualstudio.com/docs/getstarted/settings
And there is always the chance to press ctrl+shift+p and type Preferences: Open Settings (JSON). If you go to a new line and type "" you see the autocompletion list which shows all possible options.
EDIT: I just discovered that you can also restore the old behaviour. Open the settings and set workbench.settings.useSplitJSON to true.
I recently started using Visual Studio Code and I would like to know, is a way to open files in a new tab? Currently whenever I open a new file the files I currently have open disappear. I say new tab, but any option that will let me open a new file in the same window as the old one works.
I have tried disabling Preview Mode through the workbench settings as shown in this answer: How to config vscode to open files always in a new tab?. However, when I choose Open or Open Recent the new file still replaces my old file.
Thanks.
Once you have to open your settings file, add the "workbench.editor.enablePreview" property and set value to false.
For 1.21.1 version.
In user settings =>
"workbench.editor.enablePreview": false,
"workbench.editor.enablePreviewFromQuickOpen"
the best way i found.
Starting with VSCode 1.52 (Nov. 2020), you should not have any more issue: all files will open in new tabs, even in preview mode.
Better handling of preview editors:
Preview editors are now better handled with numerous improvements based on feedback and making this feature work more consistent.
The setting workbench.editor.enablePreviewFromQuickOpen is now disabled by default so that editors opening from quick open will not appear in preview mode anymore.
When you start a navigation (e.g. go to definition), the editor you start from will move out of preview mode to keep it open while the new editor will be in preview mode until you navigate further.
We changed all of our custom trees (the ones used from extensions or Git changes view for example) to work more consistently like our built-in trees (like the explorer).
This means, the following interactions now apply to all of them:
double-click or mouse-middle-click to open non-preview
Enter to open non-preview (Space to open in preview-mode)
Note: if you are the author of an extension that is leveraging our custom tree API, you can benefit from this change as well.
Make sure to use vscode.open or vscode.diff commands for the TreeItem.command and you are in!
A new menu item in the editor overflow menu allows to quickly turn off preview editors altogether:
You need to double click on the name of the file. Also, it needs to be done swiftly elsewhere you will be opening in the same tab.
You can drag and drop file near to the opened tab and the file will open in new tab.
Thanks everyone. Double clicking and dragging was useful, but it still didn't solve my problem when opening files from different projects with the "Open File" menu command. I found that Multi-root Workspaces is what I was looking for. https://code.visualstudio.com/docs/editor/multi-root-workspaces
This is likely due to Visual Studio Code opening file in what's called "Preview Mode", which allows you to quickly view files, ideally if a tab is in Preview Mode then its title in the tab bar, will be italic.
To disable Preview Mode set "workbench.editor.enablePreview": false in your settings file or use the "workbench.editor.enablePreviewFromQuickOpen" option to disable it only from the quick open menu.
Alternatively, use command palette CTL+Shift+P (to get all settings) VScode settings then in User => Workbench => Editor Management you can uncheck Enable Preview and Enable Preview from Quick Open to get the same results described above
Is there a way to disable markdown preview auto-refresh?
One particular use case I have in mind:
I have markdown files A.md and B.md open in VSCode.
Active tab is A.md.
I press Ctrl+Shift+V to open the preview for A.md.
I switch to B.md tab.
Now the markdown preview tab switches to B.md and refreshes when I click on it. I would like to know a setting for VSCode to keep A.md in the preview tab and not auto-refresh.
Spent some time searching on SO and in VSCode user settings but cannot seem to find a relevant setting.
I think you will need to use the command
markdown.showLockedPreviewToSide
You can find it in the command palette "Markdown: Open locked preview to the side") or as the command in the keyboard shortcuts - where you could set it to a keybinding, there isn't a default keybinding.
In VSCode, if I have an editor window tab open and I click anywhere in that editor window, the selected file in the File Explorer changes to the file being edited. I would like to prevent that behavior. This is possible in Visual Studio, but I can't seem to find a similar setting in the preferences file of VSCode.
Can anyone provide some suggestions?
This has been added, see https://github.com/Microsoft/vscode/issues/14745.
Configuration is "explorer.autoReveal": false
You can't, at least not today. The only thing you can do, is keeping the scroll position when switching tabs. See this answer for the setting: VSCode prevent file Explorer from jumping
And here is the feature request on Github: https://github.com/Microsoft/vscode/issues/14745
(Feel free to add a "Thumbs Up" via Github Reaction at the top so the request gets more attention in the future, this increases the chances that it gets implemented sooner)