coder / code-server

VS Code in the browser
https://coder.com
MIT License
67.27k stars 5.51k forks source link

[Feat]: how to open folder or server path through code server url param #6662

Closed daodol closed 1 month ago

daodol commented 6 months ago

how to open folder or server path through code server url param? for example https://vscode.dev?folder=xxx

code-asher commented 6 months ago

code-server also supports the folder query parameter. Are you encountering a bug with it?

daodol commented 6 months ago

code-server also supports the folder query parameter. Are you encountering a bug with it?

ok,but I didn't find the full documentation on this and I don't know how to use it

code-asher commented 6 months ago

It is mainly meant to be used with File > Open Folder from within VS Code, but you can construct it manually by pointing it to any directory on the remote machine. https://domain.com?folder=/home/coder/project for example.

code-asher commented 1 month ago

Closing as stale but feel free to comment if you come back to this.