Command-line companion application for VSCode to create, save and open files created via code CLI.
You can also download compiled binary for Windows & Linux from Releases
If on Debian/Ubuntu based Linux distro, insall "build-essential" by running:
sudo apt install -y build-essentialIt will install GCC compiler and MAKE. Then simply run:
make codeOR
gcc -o code code.cand then run binary with ./code filename.
- Move the compiled binary to your home directory;
mv <path-to-compiled-code ~/. - Create an alias for it in your
.bashrc/.zshrcfile:alias code="~/code" - You can now use
codecommand from anywhere.. code|code .|code hello.py
At the end, it all might seem stupid, but it was bothering me that running code command (VSCode one) doesn't save the file on disk when run from terminal like code hello.c until you hit ctrl + s. So, I created this, not very well made CLI program, WHICH WORKS! ;)