4

Everytime I open Visual Studio Code, the app loads up and randomly opens a file called "Untitled-1" which contains the following snippet of code:

<?php phpinfo(); 

I want to open up Visual Studio Code without it opening any file at all at load. I just want the window to open with nothing loaded. I've set all of these settings, but it still happens.

"window.reopenFolders":"none", "window.openFilesInNewWindow":"off", "window.openFoldersInNewWindow":"off" 

Is there a way to achieve this?

1

3 Answers 3

8

Your globals are probably set to "workbench.startupEditor": "newUntitledFile"

Try chaning this setting to none or removing it all together.

Sign up to request clarification or add additional context in comments.

Comments

1

You can try to remove the backup folder from your Code data folder. On macOS that is in application support.

Comments

0

This could be related to "hot exit".

Try adding this to your settings:

"files.hotExit": "off" 

To read details about hot exit, check out the official announcement here.

1 Comment

When Untitled-1 is not Empty, VScode will alert user to save it.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.