pratikpjain.15's blog

By pratikpjain.15, history, 3 years 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

| Write comment?
»
3 years ago, hide # |
 
Vote: I like it +12 Vote: I do not like it

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

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

notepad

»
3 years ago, hide # |
 
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

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

I am using sublime text too!

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

I don't think it matters.

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

i like using Vim it works great for me

»
3 years ago, hide # |
 
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.

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

CLion

»
3 years ago, hide # |
 
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 (:

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

Brains and eyes

»
3 years ago, hide # |
← 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.

»
3 years ago, hide # |
 
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.

»
3 years ago, hide # |
 
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)
»
3 years ago, hide # |
 
Vote: I like it +11 Vote: I do not like it

Use :

  1. Sublime

  2. VScode — copilot Benefits :)

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

vim ofc

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

Try cp editor

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

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

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

google docs

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

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

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

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

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

vs code and gvim.

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

I use Vim and a bash command line

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

    Can you write more about your setup?

    • »
      »
      »
      3 years ago, hide # ^ |
      ← 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

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

vscode + CPv2 environment :)

»
3 years ago, hide # |
← 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

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

Lazyvim :)

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

Real men write on paper.

»
3 years ago, hide # |
 
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.

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

why has no one said usaco ide? its very good and its on the web, so easy switch between codeforces tab and usaco ide tab

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

Maybe you should try Ideone.com. It's really famous among Codeforcers.

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

I use Visual Studio Code, it works amazingly not only for CP but also for other purposes