Diegogrc's blog

By Diegogrc, history, 2 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

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

CLion

»
2 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.

  • »
    »
    2 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.

  • »
    »
    21 month(s) 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 ?

»
2 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.

  • »
    »
    2 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.

  • »
    »
    21 month(s) 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?

    • »
      »
      »
      21 month(s) 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

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

Custom Invocation

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

Xcode

»
2 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.

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

    lkdcjjhfkjsdhvc you are friends in real life lol

»
21 month(s) 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.

»
21 month(s) ago, # |
  Vote: I like it 0 Vote: I do not like it

VScode

»
21 month(s) 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...