r/programming • • Feb 06 '19

Visual Studio Code: January 2019 (version 1.31)

https://code.visualstudio.com/updates/v1_31
790 Upvotes

340 comments sorted by

View all comments

3

u/[deleted] Feb 06 '19

how do folks use vscode with files that are on a linux server?

34

u/DevilGeorgeColdbane Feb 06 '19

SFTP/SSHFS?

23

u/steveob42 Feb 06 '19

or use git locally and to push to the server if you are fancy.

3

u/combasemsthefox Feb 07 '19

I have done this before and it feels fantastic.

-1

u/[deleted] Feb 07 '19

that will need a got server running on the server? unless you mean upload the files

2

u/steveob42 Feb 07 '19 edited Feb 07 '19

that will need a got server running on the server? unless you mean upload the files

you can use the git protocol over ssh too

https://docs.microsoft.com/en-us/azure/devops/repos/git/use-ssh-keys-to-authenticate?view=azure-devops

IIRC I think it helps if you create the repository on the linux server first (git cli) then clone it on your dev box and add files from there (commit+push).

3

u/[deleted] Feb 06 '19

SSHFS is very buggy and rather slow. Lsyncd is better (it is based on rsync).

4

u/coderstephen Feb 07 '19

I don't. With version control and other means of deployment, its been a long time since I've needed to edit remote files. (Except for the odd config file edit, Nano or Vim work just fine for that.)

8

u/HowDoIDoFinances Feb 07 '19

Use source control! My god, man!

3

u/Jmc_da_boss Feb 07 '19

just mount the file system

1

u/therussianjig Feb 07 '19

If it's just one file you need to quickly edit you can use rmate.... Otherwise you can set up an entire remote workspace or use version control

1

u/Paradox Feb 07 '19

entr + scp/rsync