25

I built my own custom version of vscode to add some features to the minimap, namely highlighting when highlighting a word. All is well and good, apart from the issue where my version of vscode never remembers the last opened folder and always opens the welcome screen instead.

The official version of vscode does not do this and opens the last opened folder, as expected. What is wrong with my version?

For reference, this is the code I used to build my version of vscode: https://github.com/abhijitvalluri/vscode/tree/minimap_enhancements

lite-whowantstoknow
  • 799
  • 3
  • 9
  • 18

3 Answers3

34

According to https://code.visualstudio.com/docs/getstarted/settings you need to set workbench.startupEditor to "None".

Mark Lawrence
  • 718
  • 8
  • 7
19

Alternatively, you can go to File > Preferences > Settings, search "Startup Editor" in "Search Settings" and choose "None" from the drop-down menu.

Sayyor Y
  • 1,130
  • 2
  • 14
  • 27
  • 1
    On the left sidebar, it is under the Workbench menu. Scrolldown to "Startup editor". – Ian Oct 13 '21 at 20:22
4

First option (Simpler)

You can deselect this option on the screen itself:

VSCode

At the bottom of the page you have the following option:

VSCode

Second option (More complex)

Go to:

File > Preferences > Settings > Workbench > Startup Editor

E Selecione a opção "None":

VSCode

Wictor Chaves
  • 957
  • 1
  • 13
  • 21