Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I save the layout of visual studio code?

I started using Visual Studio Code but I have one problem with it. I would like to always show the terminal below and never show "Open editors" in the explorer view. Now everytime I open a new folder I have to go to view -> Integrated terminal and hide the "Open Editors" tab in the explorer view.

I've already tried looking in the preferences but I can't find this, hopefully someone here knows a solution.

enter image description here

like image 425
roy-willemse Avatar asked Feb 13 '18 19:02

roy-willemse


People also ask

How do I save a format in Visual Studio?

Click the “Settings” gear icon in the bottom-left corner. Search “Formatter” and click the “Editor: Default Formatter” option. From the drop-down menu, select whichever code formatter you want to use. Scroll down a bit and check the box next to the “Editor: Format On Save” option.

Can you export Visual Studio Code settings?

Navigate to Tools – Options – Environment – Import / Export Settings. you can export your existing settings and save. Next time if you want your settings to be applied to Visual Studio you just need to have your exported settings file, you can then just import the settings file. And your settings will be there.


2 Answers

You can add settings by going to File > Preferences and adding them in the right pane, in "User Settings" if you want to keep them for all workspaces or in "Workspace Settings" for this workspace only.

To remove the "Open Editors" list, you can put

{
    "explorer.openEditors.visible": 0,
}

I couldn't find the setting to show the terminal though..

Hope this helps

like image 176
rpld Avatar answered Sep 30 '22 18:09

rpld


The shortcut key to open the integrated terminal in Visual Studio Code is by pressing Ctrl + ~ key. It open the terminal on the current working directory.

To hide Open editors pane

  1. Go to Files -> Preferences -> Settings
  2. The settings.json should open up
  3. Search for explorer.openEditors.visible, set its value to 0 to hide the pane
like image 39
Pritam Mullick Avatar answered Sep 30 '22 18:09

Pritam Mullick