JagaScript

Logo
1 min read

Opening a Folder and File in Vscode from Terminal

November 08, 2019
tags: vscode

vscode

VSCode offers the code command (code-insiders for the beta channel) to open files and folders from terminal

these are some possible usage:
code myfile open a single file in the current folder
code a/b/c/d/text.sh open a single file
code myFolder opens a folder
code . opens current folder

what if we want to open a folder and also a file within in?

use code path_to_foder --goto path_to_file

Sharing is caring

Blog by Jaga Santagostino.
Software consultant, polyglot developer, maker of things, lifelong learner.
ReactJS Milano & milano.dev organizer