pratikpjain.15's blog

By pratikpjain.15, history, 4 months ago, In English

Hi guys, I currently use sublime text for competitive programming. Can you guys comment which IDE(/editor) gave you best experience for doing competitive programming;) ?

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

»
4 months ago, # |
  Vote: I like it +12 Vote: I do not like it

vscode + cph + #define debug(x) cerr << (#x) << " " << (x) << endl = not bad

»
4 months ago, # |
  Vote: I like it +20 Vote: I do not like it

notepad

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

I really like Microsoft Visual Studio, but sadly it is available only on windows. I use CodeLite now. It is pretty ok

  • »
    »
    4 months ago, # ^ |
      Vote: I like it +5 Vote: I do not like it

    wait, what? I use Visual Studio on Linux :/

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

    Microsoft Visual Studio is heavy I think its for building projects not for CP

»
4 months ago, # |
  Vote: I like it +7 Vote: I do not like it

I am using sublime text too!

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

i'm ok with VScode + cph.

»
4 months ago, # |
  Vote: I like it +25 Vote: I do not like it

I don't think it matters.

»
4 months ago, # |
  Vote: I like it +3 Vote: I do not like it

i like using Vim it works great for me

»
4 months ago, # |
  Vote: I like it +6 Vote: I do not like it

i dont mean to be rude or anything, but theres literally a similar blog in recent blogs. So what was the need for this.

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Sublime Text or VS Code with cph extension

»
4 months ago, # |
  Vote: I like it -6 Vote: I do not like it

Emacs

»
4 months ago, # |
  Vote: I like it +4 Vote: I do not like it

CLion

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

    Yeah its nice. But we have to purchase license for long use.

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

      clion is for sure the best editor

    • »
      »
      »
      4 months ago, # ^ |
      Rev. 3   Vote: I like it 0 Vote: I do not like it

      It can be hacked. My brother hacked it and is using it. But there is one drawback: it uses a lot of RAM.

      But it is very convenient!

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

        dude i just change the account every one month and that's it life is easy

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

          you can also get a free license, you just need an email address in the domain of your educational institution

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Well I used to use visual studio but recently I switched to "CP editor", while a lot of the "CP" features are not that useful, its light and fast and in my own experience better than visual studio (:

»
4 months ago, # |
  Vote: I like it +8 Vote: I do not like it

Brains and eyes

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

IDE doesn’t matter.I think Fingers(code writing speed) is enough.

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

It really doesn't matter. Sublime text is a good choice and many programmers use it. But I go with vim because I love its shortcuts and simplicity.

»
4 months ago, # |
  Vote: I like it +8 Vote: I do not like it

Honestly ranking from my experience:

  1. Sublime Text (Best)
  2. Codeblocks (Better)
  3. Visual Studio Code (Good)
»
4 months ago, # |
  Vote: I like it +11 Vote: I do not like it

Use :

  1. Sublime

  2. VScode — copilot Benefits :)

»
4 months ago, # |
  Vote: I like it +3 Vote: I do not like it

vim ofc

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Try cp editor

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

VIM

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Does that help if I make a video analyzing different IDE/Editors?

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

google docs

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

VS Code + CPH + Vim

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

why not just use https://typeracer.com ?

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

VIM

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

VS Code + CPH + Vim

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Problem Hanoi Factory on the same idea.

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

Both Vim & Vim Based Editors(LazyVim, LunarVim, AstroVim, NVChad) are equally good and powerful. Nothing beats Vim.

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Clion is great for C++/C and I highly recommend it.

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Use VIM

Perhaps use Lazy.vim or some other vim distro.

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

vs code and gvim.

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

code blocks hehe

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

I use Vim and a bash command line

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

    Can you write more about your setup?

    • »
      »
      »
      4 months ago, # ^ |
      Rev. 3   Vote: I like it +10 Vote: I do not like it

      I live in the terminal, I just use plain Vim and basic GNU coreutils, there is really not much to it. I can go through my constest routine if you like though.

      Contest starts, create a new directory and copy the template.

      mkdir contest
      cd contest
      for f in {a,b,c,d,e,f}.cpp; do cp ../template.cpp $f; done

      Then I read problem A and start implementing

      vim a.cpp

      My .vimrc (Vim configuration file) is quite minimal. It's just this plus a custom color theme (solarized):

      set mouse=a
      set number
      set relativenumber
      set tabstop=4
      set shiftwidth=4
      set noexpandtab
      set smartindent
      set autoindent
      set foldmethod=syntax
      set breakindent
      set linebreak
      noremap <UP>    :resize +1<CR>
      noremap <DOWN>  :resize -1<CR>
      noremap <RIGHT> :vertical resize +1<CR>
      noremap <LEFT>  :vertical resize -1<CR>

      After exiting Vim, I copy each sample test case into a file

      cat > a1.in

      This brings up a program that will write anything I type into a1.in. After copying a sample test case into my clipboard I press ctrl+shift+V to paste and ctrl+D to exit.

      After this I just compile and run each sample:

      make a
      ./a < a1.in

      I have this environment variable set on my .bashrc that make uses to know which flags to use to compile cpp files:

      export CXXFLAGS="-std=c++20 -Wall -Wconversion -Wshadow"

      If the program crashes I then re-compile and run using address sanitizer, that gives nice additional information when invalid memory accesses happen. (e.g. line number of the invalid access and line number where the most likely intended target of the access was allocated)

      rm a
      make a CXXFLAGS+='-fsanitize=address -g'
      ./a < a1.in

      Hope this helps, but I don't see how it could help

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

vscode + CPv2 environment :)

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

Geanie when giving onsite contests. Usually onsite contests don't allow extensions on sublime and vscode :(

Sublime + Fast Olympic

or

Vscode + CPv2 environment

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Lazyvim :)

»
4 months ago, # |
  Vote: I like it +3 Vote: I do not like it

Real men write on paper.

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

I used to use Emacs, from 10 years ago till 5 years ago. I switched to Sublime Text then. Then I switched to CLion 3 years ago. I recommend CLion.

  • Sharp bug-catching during coding.
  • Bundled GDB. Easy debugging.
  • Write CMake once and use it every time.
  • Free for students.

It's slower than VIM, Emacs, and Sublime, but it's worth it.

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

im not seeing any dev c++, is there any reason for that?