C
Coder.com•7mo 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•7mo ago
<#1237046838553743461>
Category
Help needed
Product
code-server
Platform
Linux
Logs
Please post any relevant logs/error messages.
Phorcys
Phorcys•7mo ago
code <filename> should also work
JFK
JFKOP•7mo ago
using the starter docker template, it does not.
bash: code: command not found
bash: code: command not found
Phorcys
Phorcys•7mo ago
let me take a look
JFK
JFKOP•7mo ago
Thank you. Probably just a path thing?
Phorcys
Phorcys•7mo ago
yeah seems like code-server doesn't have it oh
Solution
Phorcys
Phorcys•7mo 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•7mo ago
OMG that's so obvious... why didn't I try that 😦 Thanks Phorcys!
Phorcys
Phorcys•7mo ago
marking this as resolved :-)
Codercord
Codercord•7mo ago
@Phorcys closed the thread.
Want results from more Discord servers?
Add your server