Search code examples
visual-studio-codeserverapache2apache2-module

How to open a file from apache2 in VS Code using 'code .'


I am using apache2 server where I have my Git repo cloned. I want to be able to open the folder in VS Code using code . but when I run that command it says -bash: code: command not found - Do I have to install a package on the server and if so, where would I need to install it. Many thanks.


Solution

  • Thanks for all the help which is really appreciated. Anyone who comes across this problem, I simply downloaded the Remote-SSH extension in VS code which allowed me to do open the files on the server directly in the code editor and edit as normal.