You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
VSCode should not open browser on first start without user's say-so #14934
Upon first start vscode opens a web browser pointing to https://code.visualstudio.com/docs?start=true. It should not do that without getting a confirmation from user it is OK to do so.
Some editors choose to have a "welcome" page with links to documentation (cf. Eclipse, Qt Creator), it could be one possible solution.
Perhaps a MD/RST document could be opened upon first start with some brief info and helpful links (cf. Vim, Emacs).
Another option would be a prompt asking user to open a link could do as well, but personally I think this would be worse solution.
First-time permissions aside, Is this supposed to happen each time you open vscode? I'm finding the "Getting Started" docs annoying each and every time I want to edit with vscode.
Christof Marti (@chrmarti) I swapped to the Insiders build and I haven't seen this issue anymore. Will let yall know if it arises again. I also got a reset color scheme each time I opened vscode, so clearly something was wonky with persistence.
Opening browser pretty annoying when I re-install VS Code.
Now we have a welcome page to give user some guide and help, I think there's no need to open a browser.
+1 there should be at least a Command Line Option flag to disable the automatic opening of a browser window on first launch, to better comply with automated deployment scenarios.
Reacted by mnghsn, Yan Zhang, Richard Kennesson and Joel Birchler
I could have sworn there was a command line option posted to one of these issues but I can't find it.
I was going to add it to my dotfiles but figured I could find it again if I needed it. Unfortunately the words I would use to search for it are so common that I can't seem to find it or remember how I got to it in the first place.
I don't know if this will survive updates but I'm going to try it. I'm on Kubuntu but if anyone is so inclined to try it it can be modified to suit your situation. I'm no expert so, until it's built into vscode, if there's a better way I'm willing to try it
edit .bashrc and add
alias code='code --skip-getting-started'
and then to edit the *.desktop files
sudo sed -i 's|/usr/share/code/code|/usr/share/code/code --skip-getting-started|g' /usr/share/applications/code*
maybe in the future a settings.json variable could be set like skip-getting-started: true and code --skip-getting-started would add that to the settings.json file if it didn't exist. I'm sure you folks can think of something better but it's just an idea
VS Code reads ~/.config/Code/User/globalStorage/state.vscdb SQLite database which has workbench.hide.welcome=true to determine whether open welcome page on browser. You can edit and backup this file to your dotfiles.
Activity
rebornix commentedon Nov 3, 2016
Assign to Christof Marti (@chrmarti) as it's kind of getting started experience.
dawsbot commentedon Dec 15, 2016
First-time permissions aside, Is this supposed to happen each time you open vscode? I'm finding the "Getting Started" docs annoying each and every time I want to edit with vscode.
chrmarti commentedon Dec 19, 2016
dawsonbotsford This should only happen once - on first startup. Please open an issue if it shows more than once.
dawsbot commentedon Dec 19, 2016
Christof Marti (@chrmarti) I swapped to the Insiders build and I haven't seen this issue anymore. Will let yall know if it arises again. I also got a reset color scheme each time I opened vscode, so clearly something was wonky with persistence.
mnghsn commentedon Feb 20, 2018
+1 in 2018.
Opening browser pretty annoying when I re-install VS Code.
Now we have a welcome page to give user some guide and help, I think there's no need to open a browser.
tinanigro commentedon May 18, 2019
+1 there should be at least a Command Line Option flag to disable the automatic opening of a browser window on first launch, to better comply with automated deployment scenarios.
rkennesson commentedon May 31, 2019
I could have sworn there was a command line option posted to one of these issues but I can't find it.
I was going to add it to my dotfiles but figured I could find it again if I needed it. Unfortunately the words I would use to search for it are so common that I can't seem to find it or remember how I got to it in the first place.
chrmarti commentedon Jun 3, 2019
--skip-getting-startedwill skip opening the browser until you start without that flag. You probably want to always pass it.rkennesson commentedon Jun 3, 2019
I don't know if this will survive updates but I'm going to try it. I'm on Kubuntu but if anyone is so inclined to try it it can be modified to suit your situation. I'm no expert so, until it's built into vscode, if there's a better way I'm willing to try it
edit .bashrc and add
alias code='code --skip-getting-started'and then to edit the *.desktop files
sudo sed -i 's|/usr/share/code/code|/usr/share/code/code --skip-getting-started|g' /usr/share/applications/code*maybe in the future a
settings.jsonvariable could be set likeskip-getting-started: trueandcode --skip-getting-startedwould add that to thesettings.jsonfile if it didn't exist. I'm sure you folks can think of something better but it's just an ideamnghsn commentedon Jun 3, 2019
VS Code reads
~/.config/Code/User/globalStorage/state.vscdbSQLite database which hasworkbench.hide.welcome=trueto determine whether open welcome page on browser. You can edit and backup this file to your dotfiles.I have a
state.vscdbthat make VS Code skip welcome page and some notifications on first start up.https://github.com/jmlntw/dotfiles/blob/master/vscode/globalStorage/state.vscdb
rkennesson commentedon Jun 3, 2019
jmlntw awesome. thanks. I took a look at it in sqlitebrowser and it's a nice simple fix. I'm going to add it to my vscode install script for later.
jrieken commentedon Oct 8, 2019
Thanks to Benjamin Pasero (@bpasero) we finally stopped doing this 👯♂ 👯
bpasero commentedon Oct 8, 2019
Actually for September.