Reputation: 528
Is there a way to open VSCode using code .
in the current VSCode window?
Whenever I open a new window in VSCode and open up the terminal inside of VSCode and create my project and then use code .
, it always opens a brand new VSCode window instead of just loading in my current window.
I don't get why it doesn't just load in the current VSCode window instead of opening up a brand new VSCode window?
Upvotes: 2
Views: 1343
Reputation: 2646
Yes, you can achievev this by:
code -r .
The -r
flag is the alias for --reuse-window
.
Moreover, if you experience the same issue on a file basis (e.g., code test.py
opens test.py
in the wrong window), you can do:
code -r test.py .
Upvotes: 5