lite-whowantstoknow
lite-whowantstoknow

Reputation: 829

vscode always opens welcome screen on startup instead of last opened folder

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

Upvotes: 28

Views: 19440

Answers (3)

Wictor Chaves
Wictor Chaves

Reputation: 1129

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

Upvotes: 7

Sayyor Y
Sayyor Y

Reputation: 1314

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

Upvotes: 21

Mark Lawrence
Mark Lawrence

Reputation: 797

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

Upvotes: 39

Related Questions