Open Visual Studio Code from the Terminal

Ok, it’s not a super secret feature, but I noticed some of my colleagues and friends do not use it at all while I think it’s quite handy, so I’m sharing it here.

You might already know, but you can launch vscode from the terminal by just typing code


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by Leonardo Montini

Ok, it's not a super secret feature, but I noticed some of my colleagues and friends do not use it at all while I think it's quite handy, so I'm sharing it here.

You might already know, but you can launch vscode from the terminal by just typing code

code . will Open vscode on the current location, also cool if you're wandering around your filesystem in the terminal for whatever reason.

It can also accept a parameter that is the path, so with code your/path it will open a vscode instance already pointing to that file or folder. This is particularly handy right after git clone as all you have to do is code repo-name and you're ready to write some code.

Last but for sure not least, I made a short video as usual about the topic, you can find it here:

Watch the video

So, a question for you, how often do you open vscode from the terminal?

Thanks for reading this post, I hope you found it interesting!

Do you like my content? You might consider subscribing to my YouTube channel!
You can find it here:
YouTube

Feel free to follow me to get notified when new articles are out ;)


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by Leonardo Montini


Print Share Comment Cite Upload Translate Updates
APA

Leonardo Montini | Sciencx (2022-10-14T17:30:08+00:00) Open Visual Studio Code from the Terminal. Retrieved from https://www.scien.cx/2022/10/14/open-visual-studio-code-from-the-terminal/

MLA
" » Open Visual Studio Code from the Terminal." Leonardo Montini | Sciencx - Friday October 14, 2022, https://www.scien.cx/2022/10/14/open-visual-studio-code-from-the-terminal/
HARVARD
Leonardo Montini | Sciencx Friday October 14, 2022 » Open Visual Studio Code from the Terminal., viewed ,<https://www.scien.cx/2022/10/14/open-visual-studio-code-from-the-terminal/>
VANCOUVER
Leonardo Montini | Sciencx - » Open Visual Studio Code from the Terminal. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/10/14/open-visual-studio-code-from-the-terminal/
CHICAGO
" » Open Visual Studio Code from the Terminal." Leonardo Montini | Sciencx - Accessed . https://www.scien.cx/2022/10/14/open-visual-studio-code-from-the-terminal/
IEEE
" » Open Visual Studio Code from the Terminal." Leonardo Montini | Sciencx [Online]. Available: https://www.scien.cx/2022/10/14/open-visual-studio-code-from-the-terminal/. [Accessed: ]
rf:citation
» Open Visual Studio Code from the Terminal | Leonardo Montini | Sciencx | https://www.scien.cx/2022/10/14/open-visual-studio-code-from-the-terminal/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.