Блог пользователя Diegogrc

Автор Diegogrc, история, 5 лет назад, По-английски

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!

  • Проголосовать: нравится
  • +7
  • Проголосовать: не нравится

»
5 лет назад, # |
  Проголосовать: нравится +19 Проголосовать: не нравится

CLion

  • »
    »
    3 года назад, # ^ |
      Проголосовать: нравится -13 Проголосовать: не нравится

    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.

»
5 лет назад, # |
Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

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.

  • »
    »
    5 лет назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    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.

»
5 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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.

  • »
    »
    5 лет назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    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.

  • »
    »
    4 года назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

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

    • »
      »
      »
      4 года назад, # ^ |
        Проголосовать: нравится +3 Проголосовать: не нравится

      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

»
5 лет назад, # |
Rev. 2   Проголосовать: нравится +5 Проголосовать: не нравится

Custom Invocation

»
5 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Xcode

»
5 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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.

»
4 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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

»
4 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

VScode

»
4 года назад, # |
Rev. 15   Проголосовать: нравится 0 Проголосовать: не нравится

I use Sublime to code and lldb to debug.

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

»
3 года назад, # |
Rev. 3   Проголосовать: нравится +1 Проголосовать: не нравится

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)

  • »
    »
    3 года назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    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.