Diegogrc's blog

By Diegogrc, history, 3 years ago, In English

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!

 
 
 
 
  • Vote: I like it
  • +7
  • Vote: I do not like it

»
3 years ago, # |
  Vote: I like it +19 Vote: I do not like it

CLion

  • »
    »
    14 months ago, # ^ |
      Vote: I like it -13 Vote: I do not like it

    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.

    • »
      »
      »
      14 months ago, # ^ |
        Vote: I like it -21 Vote: I do not like it

      Buy normal computer, not Mac

      • »
        »
        »
        »
        14 months ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        I didn’t get you. This post asking best IDE for Mac.

»
3 years ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

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.

  • »
    »
    3 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    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.

    • »
      »
      »
      14 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      can someone please send the link to download QtCreator. I tried but i couldn't find from where to download it.

      Thank You!

  • »
    »
    3 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    How do you test the inputs there ? I am not able to paste the whole test cases ? we manually have to enter all the input test cases I think. I tried pasting the input test cases and the last digit of the copied part gets repeated. How can I create a 'custom test' like environment in xcode, where I can simply input all test cases in a box and all the output cases will be printed after I finish inputting all the entries ?

»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

You 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.

  • »
    »
    3 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    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.

  • »
    »
    3 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    I cannot use bits/stdc++.h header in VS, how to overcome this issue?

    • »
      »
      »
      3 years ago, # ^ |
        Vote: I like it +3 Vote: I do not like it

      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

»
3 years ago, # |
Rev. 2   Vote: I like it +5 Vote: I do not like it

Custom Invocation

»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Xcode

»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

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.

  • »
    »
    3 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    lkdcjjhfkjsdhvc you are friends in real life lol

»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

For programming by myself, I use console + vim. For team programming (ICPC style) I recommend you use VSCode with the LiveShare extension.

»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

VScode

»
3 years ago, # |
Rev. 15   Vote: I like it 0 Vote: I do not like it

I use Sublime to code and lldb to debug.

Xcode is good, but sometimes it feels like shooting butterfly with rifles...

»
14 months ago, # |
Rev. 3   Vote: I like it +1 Vote: I do not like it

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)

  • »
    »
    14 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    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 ).,

    from what i know there is no inbuilt debuging tool in geany.

  • »
    »
    14 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    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.