Skip to content

code : VSCode cli #642

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
iwoogy opened this issue May 4, 2019 · 6 comments
Closed

code : VSCode cli #642

iwoogy opened this issue May 4, 2019 · 6 comments

Comments

@iwoogy
Copy link

iwoogy commented May 4, 2019

Hello

I need to use the VSCode cli but I cannot find it.

Description

root@13857b5bdf7d:/home/coder/project# command -v code
root@13857b5bdf7d:/home/coder/project# which code
root@13857b5bdf7d:/home/coder/project# code --version
bash: code: command not found

Question

Is there a way to install VSCode command line ?

Thanks

Regards

Bobby

@iwoogy iwoogy added the question label May 4, 2019
@vnijs
Copy link

vnijs commented May 4, 2019

Have you tried code-server?

@iwoogy
Copy link
Author

iwoogy commented May 4, 2019

Is it the same as the reguler code cli ?

What I try to achieve is to open a file programmatically.

For example on VSCode I will call :

code --goto src/app/pages/main.tsx:24:9

and VSCode will open the file at the line 24.

I tried :

code-server --goto src/app/pages/main.tsx:24:9
error: unknown option `--goto'

@vnijs
Copy link

vnijs commented May 4, 2019

As far as I know you cannot do that. See command line help below. code-server will start a web service that, once you are in the application in your browser, will work like vscode.

image

@hbjydev
Copy link

hbjydev commented May 7, 2019

They should make an RPC plugin and make a CLI that hooks into it. That'd be cool

@code-asher
Copy link
Member

This isn't supported but hopefully it will be eventually: #164.

@sandric
Copy link

sandric commented Dec 14, 2019

Any progress in that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants