I am trying to give visual-studio-code a go to see if it would be a good code editor for me. So I have it installed. However, I also already had/have Sublime Text 3 installed. I cannot for the life of me figure out how to get vscode to run from the CLI/terminal.
Running:
code README.md
Opens up a README in sublime.
Yet when I do which code
=> /usr/bin/code => /usr/share/code/bin/code the files in /usr/share/code have license text files for VSCode:
$ head -3 /usr/share/code/resources/app/LICENSE.txt
MICROSOFT SOFTWARE LICENSE TERMS
MICROSOFT VISUAL STUDIO CODE
...
What I have tried:
I uninstalled vscode:
sudo apt remove --purge code
sudo apt install code
And yet running code someTextFile.txt
(or /usr/bin/code
or /usr/share/code/bin/code
) still opens sublime instead of vscode.
How can I fix the command to allow me to run vscode to open code files from the CLI?
type -a code
to the post, please