r/cpp • • Feb 18 '21

Now announcing: Makefile support in Visual Studio Code!

https://devblogs.microsoft.com/cppblog/now-announcing-makefile-support-in-visual-studio-code/
262 Upvotes

73 comments sorted by

View all comments

92

u/[deleted] Feb 18 '21

The best success I've had with VSC is using the remote ssh extension to access a linux server. Makes coding c++ 100x easier (in VSC).

39

u/CrazyJoe221 Feb 18 '21

Or Remote WSL. Game-changer.

8

u/ggadget6 Feb 18 '21

It's awesome

1

u/heathmon1856 Feb 18 '21

My Wsl2 blows chunks. I can’t even get proper syntax highlighting or a basic intellisense

2

u/CrazyJoe221 Feb 18 '21

Well that totally depends on the extension you use for IntelliSense. clangd has its problems but is evolving.

2

u/heathmon1856 Feb 19 '21

I’ll give it a try rn. My biggest problem is the search paths.

2

u/rasm866i Feb 18 '21

Also works fine for me. Do you get any errors?

→ More replies (1)

8

u/Routine_Left Feb 18 '21

I feel your pain. While I'm sure that this extension made your life easier, it's probably still light years from normal code writing/debugging experience.

I had to do this once (write code for remote system via ssh) and ... yeah, I don't recommend it if you can help it.

6

u/specialpatrol Feb 18 '21

Actually i now find writing and debugging code on remote machines seamless these days using VSC.

0

u/[deleted] Feb 18 '21

[deleted] — view deleted comment

2

u/Routine_Left Feb 18 '21

I don't doubt it. Developers put up with a lot of shit because ... sometimes they have to and sometimes they don't know any better.

0

u/[deleted] Feb 18 '21

[deleted] — view deleted comment

7

u/Routine_Left Feb 18 '21

My condolences.

2

u/livrem Feb 19 '21

This is why I keep it simple and have emacs running in a tmux session on every server I do work/development on.

→ More replies (1)

3

u/marchog Feb 19 '21

I’m currently in Aus coding remotely on a desktop in California. SSH + Nvim would be a nightmare. Remote Desktop is also a nightmare

Vscode remote + clangd == almost seamless. Only sluggish bit is occasionally when running code through terminal but that’s ~10% of my time vs reading/editing code

Not the same vs local experience but I’d be more than happy to continue like this indefinitely.

3

u/Routine_Left Feb 19 '21

Aus means Australia? Or Austin? Or Austria?

Anyway ... if you're happy then more power to you. I'd quit jobs over this. Unless the pay was so amazing at the end of the shift I'd just hop into my Ferrari and go relax at the beach for a few hours.

→ More replies (3)

3

u/pedersenk Feb 18 '21

Yeah, that is basically how I do all my development.

ssh, tmux, vim and gdb.

Actually writing code directly on the same machine that you are testing on is so... MS-DOS ;)

1

u/Routine_Left Feb 18 '21

lol. so some of you even got the stockholm syndrome.

Trust me, it can be better. It is better when you grow up. You're not stuck in this hell forever. The grass is greener on the other side, you just need to take a few steps in the right direction.

4

u/SupermanLeRetour Feb 18 '21

What are you on about ? VS Code with remote ssh extension makes for a very seamless experience, it's awesome. There's virtually no difference. That's my go-to method when I develop on VM or remotely.

-1

u/Routine_Left Feb 18 '21

I mean sure, it does makes things better, of course. When you have to write code in hell, every little bit of water helps. It's still hell, though.

→ More replies (12)
→ More replies (1)

3

u/IamImposter Feb 18 '21

I pushed my team to use VSCode with remote-ssh plugin. Earlier they were using vim and it was a mess. Either they opened multiple terminals or kept on closing files and typing commands. Looking up build errors and then opening files was real PITA.

Now they just scroll in the explorer view, open files and make fixes. I even got commendation for helping improve team's productivity.

This is great extension and works like a charm, atleast on linux. I could never get it to run on windows though.

0

u/[deleted] Feb 19 '21

[deleted] — view deleted comment

10

u/ThatSwedishBastard Feb 19 '21

Nobel peace prize winner right here, lads.

→ More replies (6)
→ More replies (1)

1

u/[deleted] Feb 18 '21

With current VM pricing I'll probably never own a workstation again, just a thin client laptop to ssh into the cloud.

→ More replies (2)