I personally feel good to use Codeblocks, its interface so good and feel free to code !
Can I customize the keyboard shortcuts, shortcut like Vim ?
# | User | Rating |
---|---|---|
1 | tourist | 3985 |
2 | jiangly | 3814 |
3 | jqdai0815 | 3682 |
4 | Benq | 3529 |
5 | orzdevinwang | 3526 |
6 | ksun48 | 3517 |
7 | Radewoosh | 3410 |
8 | hos.lyric | 3399 |
9 | ecnerwala | 3392 |
9 | Um_nik | 3392 |
# | User | Contrib. |
---|---|---|
1 | cry | 169 |
2 | maomao90 | 162 |
2 | Um_nik | 162 |
4 | atcoder_official | 161 |
5 | djm03178 | 158 |
6 | -is-this-fft- | 157 |
7 | adamant | 155 |
8 | awoo | 154 |
8 | Dominater069 | 154 |
10 | luogu_official | 150 |
I personally feel good to use Codeblocks, its interface so good and feel free to code !
Can I customize the keyboard shortcuts, shortcut like Vim ?
Name |
---|
personally i love to use eclipse as is autocompletion is smarter than the one in codeblocks.
Visual Studio 13 because of autocompletion.
but visual studio doesn't have gnu g++ compiler right? That's why i stopped using VS 13.
Bad reason.
Actually, after this 21 months I've changed Windows to Ubuntu, and now I use CLion. If I want to specify some libs, then I compile project in console with all necessary keys.
Isn't CLion just available for 1 month of free usage? or did you purchase the premium one?
it's free for students
years after I realized Sublime Text 3 to be the best choice :)
How do you deal with infinite loop run? Which cause the output.txt file to increase the size infinitely as I could not stop that activity and hence I need to reboot my PC deliberately? Which is quite painful during the contest time?
Also how do you deal with any runtime error caused? As many times it don't give the outputs nor show error and looks as the code ran but didn't gave the output.
you can find build snippets on github that runs ur output in cmd , that way the infinite loop just terminates after 3 sec . You can also just build ur cpp file and run it from cmd like me , its much more time efficient . All you have to do is set path in cmd to ur cpp file and use Alt+TAB to switch tabs
Just go in task manager and stop file execution from there.
C++ Sublime Text Build for Windows
https://pastebin.com/raw/6GRXn2yQ
How to use it?
Sublime => Tools => Build System => New Build System
.sublime-build
fileC++_Terminal.sublime-build
Sublime => Tools => Build System => C++_Terminal.sublime-build
.cpp
file write some codectrl + b
to run your codeI use dev C because it is trashy. that way i could show everybody my pure programmings skills :D
Just wrote a contest on dev C today. It's shit. Do not write a contest on dev C.
I had to to an on location contest using dev C++. I understood what you meant :-)
Honestly, on Windows, Codeblocks is enough and really bullet-proof. I personally use freopen to use I/O files if I really need to, otherwise the console provided by Codeblocks is usually enough.
Why auto does not work in codeblocks ?
Maybe you haven't activated the flag to use c++11 or c++14. Go to Settings->compiler->compiler flags and check the c++11 one.
Thank you .........I did the same ...... now it's working.
I also love to use Dev C, because it loads very fast, unlike eclipse or visual studio.
But now you don't :)
Am I the only one who is too lazy to get used to another IDE so they ended up tied with a "trashy" IDE that I were first introduced? :/
No
Which one do you use?
Me too
hahahahaha Dev C++ sucks :D
I use devc++ because other IDEs are too complicated for me ;_;
I mostly use Codeblocks 13.12. I love it. It autocompletes me. Sometimes I use Gedit or Sublime Text and I compile my sources using the linux terminal.
.
Damn, that's cold bro.
/s
.
I was making a joke about the snow in her profile pic, the /s means joke/sarcasm XD.
.
Not on codeforces for sure lol
I use Far Manager because it is very smart and it is very easy to configure files with Far.
I like Sublime Text. I don't need much in an IDE, though — so I use it mostly because it looks good :D
do you use it compiling separately in terminal ?
Yes.
you should use Sublime Input, if you put your stdin in a comment, sublime input package will build the cpp file and then run it on your given stdin.. https://packagecontrol.io/packages/Sublime%20Input
You know, if I put the stdin in a separate file, and then press
Alt+Tab+(Up+Up+Enter)x2
(about 1-2 seconds), the same will happen and there's no need to rely on packages that I may or may not have access to.Or you can do Ctrl/Cmd + B if it's just one file. You can also set it up for using the makefiles.
Ctrl+B is pretty nice (vs compiling in terminal). You get automatic scrolling to any line that has a compiler error (which most IDEs have, but terminal doesn't), and you can customize flags so you don't have to remember what to type in the terminal all the time. I only use
-O2 --std=c++11 -Wall -Wl,--stack
but of course you can go as crazy as you want.I use SublimeText with this —
And also customized the Build Script to have output in the sublime shell :)
No need to run in separate terminal. And also this works faster than any method, in code testing. Just press Ctrl + B and you have the output :)
Can you tell me how you have customized the Build Script? Also build is taking too long for c++11...
You can try this
Hey I am also using sublime text 3 with this setup using a txt file as output but it's very slow like the best is 5 sec , the worst is 35 sec and avg might be 15 secs in displaying the ouput. Can you suggest how can i speed it up.
Can You share your sublime text Build Script?!
Can you share your custom Build Script ?
follow the link i mentioned above
What OS do you use for programming?
Usually Windows with Cygwin, sometimes Linux.
Okay, thanks for the response!
Ubuntu :D I almost never use Windows.
ubuntu
Thanks!
auto keyword not working :(
[deleted]
Ubunut??? Is it an IDE???
[deleted]
Terminal isn't an IDE either.
[deleted]
I use it all the time to compile.
GNU is an operating system, not an IDE.
[deleted]
[deleted]
I use gedit :P
[deleted]
you should smoke less weed
Hi
I use Emacs because it has some good property.
That's a good operating system, but I prefer Ubuntu. I use Sublime Text with terminal to compile, and I use < and > to redirect input and output from and to files.
Vim mostly.Because I don't know how to get out of it.
I want to use VIM , its feature is too good !
I see sometime , somebody works in black interface like TC , which interface do u like ? (black, white or others )
White is better than others I think!
I prefer the Black :) ..
I use Turbo C++. Life's pretty rough.
I use VIM everywhere because its very easy to use (for me) and has very little or no distractions. I have a few shortcuts set up for programming contests for compiling. There is a plugin called syntastic which is very useful for syntax checking and highlighting for C++.
Could you provide your .vimrc file?
This is my base vimrc: https://github.com/sampritipanda/dotfiles/blob/master/vimrc
These are my plugins: https://github.com/sampritipanda/dotfiles/tree/master/vim/vundles
Then I have custom settings for each plugin: https://github.com/sampritipanda/dotfiles/tree/master/vim/settings
I love you xd
Why? e.e I love vim :|
Hey sampriti beside do we need to learn how to operate vim. Like there is no Ctrl + C (for copy) option in Vim and all that.
Yeah, vim is very different to your normal text editors. It's difficult and time consuming to get started with, and you will be very slow in using it at the beginning. I'd probably just recommend Sublime Text.
There is quite a steep learning curve while learning vim, but you'll never regret it once you've learnt it.
(Copy is called yanking, and you can use yy to do it)
Sublime Text.
I split the window in 4 parts — code (on the left), compilation output (just below the code), problem input and problem output (both on the right).
I find snippets are very helpful to automate common tasks, and it provided basic auto-complete that helps to avoid typos. It's easy to compile/execute from within the editor using CTRL + SHIFT + B, and jump to compilation errors from the compilation output.
One of the manual things that I haven't got around automating is when the process gets stuck and needs to be killed. Then I find the process id manually and kill it in the terminal.
Use this when your program gets stuck.
Tools -> Cancel Build
I use this timeout script to deal with the problem.
Modify Build Script and add
timeout --no-info-on-success --detect-hangups -m 1000000 -t 10
before running the program. This sets the Memory Limit to 1GB and Time Limit to 10 seconds. If your program takes more than that it will kill it automatically. Also it detects hangups, which happened to me a lot, that is when you can't even open a terminal and only solution is restarting PC. xDis there a way to use this script on windows?
Rezwan.Arefin01 Can you please share your build script!!
https://github.com/RezwanArefin01/subl3/blob/master/C%2B%2B11.sublime-build
I use Codeblocks to write competitive programming codes, because it's used in most programming contests and it's fast, open-source. I use VS2013 and Eclipse to write my homework, because they're more convenient.
I use codeblocks because it's easy to use.
I think this topic is very well covered here.
My heart belongs to MS Visual Studio
Intellij Idea. Most of people who use java use it.
Screw you all, real men wrote codes with notepad + cmd!! who needs IDE anyway for competitive programming :p
Enjoy Notepad crashing when opening large input files. Just any editor isn't good enough, it needs to actually work well.
Excuse me, but as I mentioned before, real men use butterflies.
>implying I'd go catching butterflies before each contest...
And what about tracing? Some plugins?
I use Ubuntu SDK... Because it's also very smart.
Ohhellotextest
Personally, I use GNU Emacs.( http://xkcd.com/378/ :D)
The main reason is that it has easy commands for almost everything -- basic cursor movement,deleting/inserting text,buffer creation/movement/deletion etc. It also has quite a lot of modes(c++ mode, java mode, fundamental mode), which make it easy to use for all languages. It has also got a pretty easy to understand tutorial, which explains the basics.
I have a terrible experience till now :D
I have almost tried every ide and every text editor and had used visual studio if i had an ide mood and far manager if i'm in an editor mood xD ( they are two powerful as they are :) ).
now i've switched to mac os since about 4 days and till now i can't determine which editor/ide i would use.
I use Vim in Terminal.
I love to use Sublime text <3
I love write program in C# and VS 2013 IDE.
Once I decided to use Visual Studio for a CF round so I started it a few minutes before the start of the contest and it was ready to use 15 minutes after the contest had already finished. Since then I have never tried to start it again.
It's absolutely unusual, unless in first run.
Visual Studio is slow in first run. it take several minutes to load
Vim is the only option.
I agree with you yashar_sb_sb
VIM is the best choice for programmer.
I use CLion on Arch Linux for easy compilation, nice autocomplete, a nice debugger, live templates, and its built-in static analysis.
Maybe I depend too much on tooling but who cares ¯\_(ツ)_/¯
I program in Java. I really like IntelliJ. Its debugger is absolutely amazing! However, I normally use BlueJ, because I have a shit PC with horrible RAM and programs on IntelliJ take forever to compile.
Bro, ditch IntelliJ. It just sucks on low-end PCs. BlueJ is also crap. Try Eclipse. It is almost like IntelliJ but yeah, it's hell better than BlueJ and runs on my shit machine like an aeroplane.
I use notepad++ and g++(cygwin) to play contest.
I use Sublime Text . I generally write codes in java . And if one has good control over his/her language the editor provides a pretty decent platform to compile , segregate input/output files in tabs and also decent styling.
> java
> sublime
LOL, why not IDEA?
IDEONE lol
I Use Atom... it is cool enough :)
I have also used it, then I switched to sublime text 3. I think sublime is better. If visual assist was free, then I guess visual studio would be better.
I use VS when my labtop being with me
when using others computers , i use cpp.sh or Codeforces tester.
or if the computer contain gcc then i use any small editor
I like to use JetBrains too
I use Programmers Notepad (http://www.pnotepad.org/) and I am quite happy with it. It is lightweight, has no distraction, can be downloaded as a portable version, can be easily configured for competitive programming Here is how to set it up to compile your C++ programs => http://algorithm4fun.blogspot.be/2015/08/compiling-c-programs-on-programmers.html
TextWrangler, with Terminal (macOS Sierra). Sometimes IDLE, as I may switch from Python to C++ and vice versa.
When I am at school, I use gedit, with Terminal (Linux Debian). I wish they had SublimeText on their computers, though.
I have used KDevelop since I switch to linux and I have some nostalgic relationship to that IDE :D And yes, I like its semantic analysis and the way of coloring the variables — each variable has a different color :D
For competitive programming I mostly use Codeblocks because it's easy to use and sometimes Vim. Eclipse for Java/Python.
Mircrosoft Word
I love to use Code::blocks. It's easy to use and I love the colors the keywords in the editor.
VIM <3, I can not go out either :,'v
Geany, simple interface, and very lightweight. But lately I start shifting to Visual Studio Code, simple and clean interface, and the integrated terminal is very useful.
This blog is asking what IDE do you use not if you write in text editor and compile in terminal. Anyway mentioning that here or even doing that in your life won't get you laid.
I love IntelliJ IDEA Community Edition. I code using Java and I think it is the best IDE for Java Coders. The reasons are:
I code in Java. I usually use BlueJ, but I have recently started using IntelliJ IDEA. I like it better. It feels better.
Hi! I've been working on a lightweight ide for a while. The first release is here, keeping in mind what I really need during the contest. https://github.com/svr8/Desk Would be happy to hear a feedback.
Is It For Java Only ? Or I can write on it C++ ?
It supports C++(python and many more) syntax colors. In order to compile/execute, you need to know the CMD commands for your language and create a build file(keeping in mind that you are executing in cmd being at a location where application was installed).
Do you Have Video or Explanation ?
I am not good in such things
Alright, will work on it. Also, I'll roll out a new update soon. It will automatically detect Java, Python and C++ so you don't have to create build files for them.
Okay , I'm Waiting For the Update :)
When you publish it Please tell me
Notepad. It makes me a pro
Sublime Text 3. Light & cool.
Sublime Text 3 with vintage(vim mode) on :D
Easy way to detect people with IQ < 90
:s/< 90/> inf/g
s|IQ|1/IQ|g
u yy 10000p :wq
not ide but my favorite program to code is visual studio code :D
me 2, VSCode in macOS.
I'm in windows.
VSCode is much better than Xcode!
I think, it's better to use editor.
I use vim on cygwin terminal. Once you get used to the shortcuts it's hard to back to editors that force you to use a mouse. It's very customizable, and I have my own scripts to quickly compile/run/debug etc.
One small nice thing about cygwin/unix like environment is you can redirect input using "<" to read from a file, much more convenient than using freopen and having to comment it out when you submit.
I am using Codeblocks. It's Fast and easy to use
i write down my code on paper and use ML to transform it into source code in computer
my favorite tools is sublime text and c++ mingw64 from codeblocks, sublime text is a cool and powerfull code editor. You can config color, snipet, template, build system, open terminal inside, separate windows view in 1 sublime text, think sublime text like linux, you can edit any thing you want. That make me code faster.
I usually use codeforces' custom invocation
I use sublime in windows 10 but it takes much time for running the code. Can anyone help me. What i should do, like should i change my build system or anything else?
You can try CP Editor, it can run the code on test cases in one click/shortcut.
This is my only reason for switching to the more slower Visual Studio Code. My build times in Sublime Text are like 4-5 seconds, seems a lot of time for me :(
I do not use IDEs. I use Atom and several plugins.
I read it to google assistant, it writes
I use Vim. It is just like having the master control on the Omnitrix. It becomes one with the body and soul and frees us from the bondage of the mouse (if used with i3wm window tiler).
Easy to use tool to download, run tests and problems, and commit solutions. CF-Tool greatly integrates with vim in a command line based environment.
Atom, without regret
Sublime text is classy and smooth :)
Vscode as I have 16 gigs of ram on my laptop and I learn more than just competitive programming.
cp editor
I tried codeblocks, sublime text, Clion and Xcode. After all the trial and error I found Xcode pretty good over all other IDEs.
Vim is the best code editor ever invented. End of discussion.
where can I learn commands used in VIM ?
You can do the vim tutorial executing the
vimtutor
command in the terminal.Am I the only one who uses CLion(by JetBrains)? I personally love CLion because of its easy to use Interface and Dark mode.
I use it, it's really good.
But sometimes it can't work if I input a large example input.
You can input large test cases using an input file. Similar to what we did in FB HackerCup.
Got it, Thanks!XD
I was using VS Code but recently I have switched to Sublime text3. VS code was taking too much time to compile. Sublime is working fine for me so far. If you have any idea about how to compile code faster on VS code, Please let me know.
compile and run in terminal. Don't compile a file every time you run it, only compile it when you made a change. precompile stdc++.h.
How does precompiling stdc++.h help? Isn't it all templated code, hence generated (and compiled and linked) only when used?
I use different IDEs for different things. For CP I just use Sublime Text.
I use VSCode in training but I use Dev C++ in codeforces contests because it's fast and simple.
Why nobody here uses VS Code like a nomral person ??
I use it along with an extension called ACMX.
Google docs
codeblocks