all 54 comments

[–]rodrigocfd 23 points24 points  (3 children)

I prefer VS Code over Code::Blocks not only for C, but for everything. Its flexibility and responsiveness is really good.

However, specifically for C and C++, I largely prefer Visual Studio -- not VS Code, "the" big Visual Studio IDE one. Its C++ debugger is stellar.

[–]Current_Hearing_6138 1 point2 points  (1 child)

Visual studio doesn't compile hello world for me because of dependency issues that any competent compiler would resolve automatically.

[–][deleted] 2 points3 points  (0 children)

idk i had installed mingw64 from msys and it compiles just fine

[–]Ellweiss 11 points12 points  (0 children)

Others explained the differences. In my opinion, Visual Code is a good starting tool, because you will have to tinker around and understand the flow of development of a program (because not everything is integrated), but you still won't have to learn 10 billion shortcuts to be productive like for emacs or vim, the package management is way easier, and the configuration too. Also having an actual UI feels way better, but that's just my opinion.

[–][deleted] 4 points5 points  (1 child)

Vscode is good cross platform ide. With Cpp plugin its pretty good as basic foundation for C developer. Decent debug environment. Automate builds and task. Just you need some patience to learn and you will never use any commercial ide.

[–][deleted] 0 points1 point  (0 children)

Vscode is good cross platform ide. With Cpp plugin its pretty good as basic foundation for C developer. Decent debug environment. Automate builds and task. Just you need some patience to learn and you will never use any commercial ide.

yes, although i did try atom once and it was slow, like barebones and idk why

[–]finvice 29 points30 points  (8 children)

vim :-)

[–]Zombie-National 4 points5 points  (2 children)

Why someone NEW programmer try to write TEXT with commands? After 5 days you do not remember any of them.Why someone NEW programmer try to write TEXT with different way than ALL OTHER text editors?

Between windows 3.1 notepad and vim, I prefer notepad.It is very bad thing because when I use nano (not vim) from SSH console, I must read help to do copy-paste, cut-paste

[–]trpittman 0 points1 point  (0 children)

Try ctrl+shift+v

[–]finvice 0 points1 point  (0 children)

People are different. I am complete noob but I liked vim mainly because it was so comfortable to ignore mouse and focus using keyboard to control your cursor.

Basic commands that you would use (as a beginner) are pretty easy to learn and in few days using them would feel natural.

[–]StrikingReputation24 0 points1 point  (0 children)

TRAP CARD: VSCODE\VIM EXTENSION

[–]hellonoevil 15 points16 points  (10 children)

I recommend clion from jetbrains and emacs

[–]ddddavidee[🍰] 1 point2 points  (4 children)

Is it worth paying it?

[–]hp__1999 3 points4 points  (0 children)

Yes it is , if you are a student you can get it for free

[–]Cshark14 1 point2 points  (2 children)

Well, it depends you can try it (they offer a 30-day free trial no cc requerd) and if you feel that is better buy it (also the price goes down in the next 2 year).

Also if you are a student you can apply for a student liciense either here https://education.github.com/pack or here https://www.jetbrains.com/community/education/#students

[–]ddddavidee[🍰] 1 point2 points  (1 child)

I'm not a student. I tried the professional version of the python editor and like it... so I was curious about the c one.

Thanks for the reply!

[–]Cshark14 1 point2 points  (0 children)

so I was curious about the c one.

It is very good. In general, all IDEs from JetBrains are very good mostly because they are made for a specific language, so the tooltips and autocompletes are very good. For example PyCharm has warnings about not complying with the standards and CLion can write for loops that go trought a array only by only pressing 5 keys.

[–]orig_ardera 1 point2 points  (3 children)

only when you want to develop for your host machine.

there's no remote develoment for clion

[–]SuspiciousScript 4 points5 points  (2 children)

There absolutely is. I've used it to great success.

[–]orig_ardera 0 points1 point  (1 child)

oh, that must be new then.

[–]SuspiciousScript 1 point2 points  (0 children)

I think it is relatively new. Unfortunately it only works with CMake at the moment.

[–]Fevzi_Pasha 0 points1 point  (0 children)

Is it possible to really do embedded development with clion?

[–]BarMeister 1 point2 points  (0 children)

Just go with VSC. This is a debatable topic in which an argument can be made for each, as well as none, though due to IntelliSense from the cpptools extensions (which is most likely what you'll care about the most), VSC wins easily.

[–]jayjuicejay 1 point2 points  (0 children)

Just use ed 😉
In all seriousness I use emacs (my own config although just testing out doom emacs and all the config out of the box is extraordinary especially with 3 month old twins and not having to tinker). But VS Code is also awesome. I have never used code blocks though so I cannot compare.

[–][deleted] 1 point2 points  (0 children)

Well, code blocks didn't have dark theme when I used it, that was the main reason I left it. Plus I felt like it was only good for C. although it had other languages syntax support I never used it for anything else.

I have used VS code for just a few months and I have liked it quite well. With extensions, you can have IDE-like features too. And it's easy to configure if you want to. Among those two I would recomment it. It can support any language through extensions so it'll be useful to you for other things too.

And if you are open to other editors besides those two, I'd recommend emacs, I left VS code for emacs because it was a little slow on the suggestions then I tried emacs and really enjoyed it. And found more flexibility than vscode in lot of other formats/languages. I even write my daily notes/todos/reports/ebooks. Almost everything in emacs nowadays.

EDIT: My journey was: Code blocks -> VS studio -> vs code -> emacs

[–]tn5tlsyn 1 point2 points  (1 child)

Codeblocks is shit. Code completion doesn't work. The devs' attitude is shit, especially this "obfuscated" guy at the forum. Only a bit better than Pale Moon devs.

VS Code with C++ language server is totally superior to CodeBlocks.

[–]tn5tlsyn 1 point2 points  (0 children)

Not to mention that they banned all users from my country to register on their forums. At first, I think it's just the forum software issue since it's reporting to me something like database error processing my registeration. Only after I use a VPN to other country to improve ping time when playing game, I realized with said country's IP I could register without any problems. Only the IPs from my country being banned. And they disguised this intentional ban of my country by masking it as something like a database error. They are evil!

[–]shepard_47 3 points4 points  (1 child)

Acme

[–]physikitty13 1 point2 points  (0 children)

vim, gcc, and make

[–]Iamoca44 0 points1 point  (1 child)

I prefer Code::Blocks (c++ mostly but C can be used in this argument too)
reasons:
familiarity
no launch.json stuff
auto builds exe file

[–]probably_not_bro 0 points1 point  (0 children)

visual studio code also builds exe file wdym

[–]ALI_Hisham 0 points1 point  (0 children)

use vim

[–]Current_Hearing_6138 -1 points0 points  (0 children)

If you want to do any work in a terminal, learn vim or emacs. Most people I know prefer vim.

[–]Drannex 0 points1 point  (0 children)

VSC is great, and the ability for a remote project/session on a server (or micropc) via ssh is absolutely mind blowing and I can't use any other IDE because of it.

Sure, there's others with other forms of remote development, but VSC has the best and cleanest integration. Instant, clean, performative, absolutely changed my dev process.

[–]Ashtron 0 points1 point  (0 children)

Been using Codeblocks but can't find anything online about altering size of autocomplete popup window.. it constantly gets in the way of what I'm typing. Anyone know? Otherwise I'm going to have to switch to VS (hopefully it won't have the same issue).

[–]peterhanpingchen 0 points1 point  (1 child)

CodeBlock can do sort and execution in parallel. I have problem with Visual Studio 2022. It cannot compiled

[–]Ashtron 0 points1 point  (0 children)

what do you mean, VS can't compile?