R
R
Romi2021-09-14 08:53:31
linux
Romi, 2021-09-14 08:53:31

Is it possible to launch VSC from a Linux console (Ubuntu 20.04) specifying the specific Workspace to open?

I got a little stuck on setting up the working environment :) I

launch VSC itself from a bash script,

/usr/bin/code

but can I pass it the Workspace that I want to open as a parameter?

Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-09-14
@romicohen

and whether it is possible to transfer to it as parameter Workspace which it is required to open?

In vs-code, folders themselves are implicitly workspaces.
If you need to open an explicit workspace, which is .code-workspace, then just specify the path to it as the first parameter
$ code /path/to/my-project.code-workspace
https://code.visualstudio.com/docs/editor/command-line

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question