Open a file or directory in the currently open VS Code window

Use -r or --reuse-window command line option to attach the currently open VS Code window.

Authored by: zloy-zhake
Brought to you by Warp, a free terminal reimagined to work like a modern app.
file_or_directory

Command
Copy
code -r file_or_directory
Tags