Difference between revisions of "Complete roguelike tutorial using C++ and libtcod - extra 1: about editors and IDE"

From RogueBasin
Jump to navigation Jump to search
(pasted →‎top: , cat and sidebar)
 
Line 4: Line 4:


We'll start with the lightweight tools and finish with the heavyweight.
We'll start with the lightweight tools and finish with the heavyweight.
==SublimeText: minimalist and powerful [windows and linux]==
===Presentation===
If you like minimalist UI and having every feature available with a few keystroke without having to browse huge menu trees or a swarm of icons, [http://www.sublimetext.com/2 SublimeText] is definitely the editor you need.
All you have to do is to add your project directory to the current project (Project / Add folder to project) and you're done. SublimeText can display a side bar with the content of the project but you don't even need it, thanks to the amazing "Go to anything" feature. You want to open the Actor.cpp  file ? Hit ctrl+p and type act, a suggestion list will open and you'll be able to open it (or switch to the tab if it's already open) faster than you would do with a mouse click.
Want to find the render function in your huge Engine.cpp file ? Use ctrl+p and type eng#upd (or ctrl+r / ren if current tab is already Engine.cpp). If Engine.hpp is open rather than cpp, simply type engcp#upd, that should work.
Want to go to line 50 in Engine.cpp ? ctrl+p / eng:50 (or ctrl+g / 50 if current tab is already Engine.cpp).




[[Category:Developing]]
[[Category:Developing]]

Revision as of 13:38, 21 October 2015

Complete roguelike tutorial using C++ and libtcod
-originally written by Jice
Text in this tutorial was released under the Creative Commons Attribution-ShareAlike 3.0 Unported and the GNU Free Documentation License (unversioned, with no invariant sections, front-cover texts, or back-cover texts) on 2015-09-21.


So far we've seen how to compile the C++ code but we didn't mention how to write it. In this article, I present a few great tools to write C++ code, covering all the needs from the minimalist, distraction-free text editor to the most heavily featured Integrated Development Environment. This is my personal selection, but remember the best tool is the one you're comfortable with so don't hesitate to try others until you find your best fit.

We'll start with the lightweight tools and finish with the heavyweight.

SublimeText: minimalist and powerful [windows and linux]

Presentation

If you like minimalist UI and having every feature available with a few keystroke without having to browse huge menu trees or a swarm of icons, SublimeText is definitely the editor you need.

All you have to do is to add your project directory to the current project (Project / Add folder to project) and you're done. SublimeText can display a side bar with the content of the project but you don't even need it, thanks to the amazing "Go to anything" feature. You want to open the Actor.cpp file ? Hit ctrl+p and type act, a suggestion list will open and you'll be able to open it (or switch to the tab if it's already open) faster than you would do with a mouse click.

Want to find the render function in your huge Engine.cpp file ? Use ctrl+p and type eng#upd (or ctrl+r / ren if current tab is already Engine.cpp). If Engine.hpp is open rather than cpp, simply type engcp#upd, that should work.

Want to go to line 50 in Engine.cpp ? ctrl+p / eng:50 (or ctrl+g / 50 if current tab is already Engine.cpp).