Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open selected folder in VS Code from the VS Code terminal (Windows 10)

I've been searching around and I can't find any way to open the selected folder in VS Code while using the VS Code terminal. Is this possible?

like image 428
kingfoot Avatar asked Dec 28 '17 20:12

kingfoot


2 Answers

Are you trying to open in the same VSCode instance to which the integrated terminal belongs?

Try:

code -r .
like image 173
Ratish Avatar answered Oct 13 '22 00:10

Ratish


Not sure if this would open in the same instance, but code . should open the current folder

like image 39
dperish Avatar answered Oct 13 '22 00:10

dperish