Is there a way of opening a file from the terminal in Visual Studio Code that opens in the same vscode instance that runs the terminal? Similar to c9 tool in Cloud9.
I'm aware of the code tool, but when you run code something.php
from the integrated terminal it opens a new vscode instance, which is not what I want...
The Visual Studio terminal is built on top of Windows Terminal. To open the terminal in Visual Studio, select View > Terminal.
Changing Default Command Line Shell Then, click on the arrow on the side of a plus (+). Here, choose Select Default Profile. Then, select any other type of command line shell. Then, restart vs code and try working on terminal.
You can use -r or --reuse-window command line option.
code -r something.php
I don't know what operating system you're using, but on MacOS you can just say open filename.ext
in the integrated terminal, and it will open a new tab in the same VSCode instance, ready for you to edit.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With