C
Coder.com•8mo ago
JFK

What is the CLI command to edit a file using code-server?

Normally I would use code <filename> in VSCode, is there an equivalent with code-server?
Solution:
@John King it's code-server <filename> https://github.com/coder/code-server/issues/164#issuecomment-683707810 so you can alias code="code-server"...
Jump to solution
10 Replies
Codercord
Codercord•8mo ago
<#1237046838553743461>
Category
Help needed
Product
code-server
Platform
Linux
Logs
Please post any relevant logs/error messages.
Phorcys
Phorcys•8mo ago
code <filename> should also work
JFK
JFKOP•8mo ago
using the starter docker template, it does not.
bash: code: command not found
bash: code: command not found
Phorcys
Phorcys•8mo ago
let me take a look
JFK
JFKOP•8mo ago
Thank you. Probably just a path thing?
Phorcys
Phorcys•8mo ago
yeah seems like code-server doesn't have it oh
Solution
Phorcys
Phorcys•8mo ago
@John King it's code-server <filename> https://github.com/coder/code-server/issues/164#issuecomment-683707810 so you can alias code="code-server"
JFK
JFKOP•8mo ago
OMG that's so obvious... why didn't I try that 😦 Thanks Phorcys!
Phorcys
Phorcys•8mo ago
marking this as resolved :-)
Codercord
Codercord•8mo ago
@Phorcys closed the thread.

Did you find this page helpful?