When I started competitive programming, I used CodeBlocks in Windows, because it had an easy to use debugger, and it achieved everything I needed for CP easily.
After I transitioned to a Mac and tried CodeBlocks there, I realized it wasn´t design to run on a Mac and it was running incorrectly. So I found c9.io, a free online IDE. This was great and I really liked using it. But now this place is closing and I am going to need a new IDE to use for Competitive programming and I am not quite sure which one would be better for me, and I think here people with experience with other IDEs could really help me get to a good one.
I use debugging a lot in CP, and I really like user friendly IDEs ( I tried VIM and i did not get it at all ).
Which one would you reccomend for me? I would appreciate the help very much. Thanks!
CLion
CLion is slow in MAC. Also consumes much CPU power that makes MacBook Pro hot within a short time. I don't know how to solve this.
Buy normal computer, not Mac
I used to use XCode, that is probably the best IDE for Mac with a very good code completion and debugger.
I now use vim + YouCompleteMe + tourist's debugging code with a lot of compiler flags, as a poor man's debugger.
I switched to vim because I thought it would improve my typing speed and that even onsite competitions would have vim. As fate would have it, I would never go onsite.
try vim-lsp + clangd instead of YCM. Much more convenient setup nowadays.
As for IDE, obviously QtCreator. Lightweight, available everywhere, has a lot of features.
can someone please send the link to download QtCreator. I tried but i couldn't find from where to download it.
Thank You!
brew install qt-creator
lolYou should try Visual Studio Code. Not an IDE, but it has good code completion and debugger. And it is lightweight, as well as user friendly.
VS Code has actual proper intellisense, not just code completion, and it is cross-platform too. Its inbuilt snippet system is helpful during contests as well. I've been using it for the past couple of months for all my Codeforces submissions, and combined with the integrated terminal and cf-tool, this makes testing and submitting solutions a breeze.
I want to setup VS code locally. Can u provide video or tutorial.
This video might help.
I cannot use bits/stdc++.h header in VS, how to overcome this issue?
Click
You can customize bits stdc++ according to your needs. Here's mine — link
PS — If you can't find the specified folder, then you can simply create a bits directory where you cpp file is then copy stdc++.h in that
Custom Invocation
Xcode
I don't think you will find a mac debugger better than Xcode, just give it a try and you will like it. Message me and I can teach you how to use it.
lkdcjjhfkjsdhvc you are friends in real life lol
For programming by myself, I use console + vim. For team programming (ICPC style) I recommend you use VSCode with the LiveShare extension.
VScode
I use Sublime to code and lldb to debug.
Xcode is good, but sometimes it feels like shooting butterfly with rifles...
Honestly I like XCode but I prefer other IDEs! It's size is about 20GB after installation! It has so many features that are useless for CP. Although its really beautiful and has a live compiler! (it shows warnings and errors while you are typing). After watching Errichto streams I switched to Linux&Geany and I love it much more! (Geany has a mac version too)
you don't need xcode to compile your stuff on macos. Install zig then
zig c++ a.cpp
. Internally it's the same clang so no problem with compatibility.coderunner 4