# IDE for ROOT?

**URL:** <https://root-forum.cern.ch/t/ide-for-root/22418>\
**Category:** ROOT\
**Created:** [December 28, 2016, 1:00pm UTC](https://root-forum.cern.ch/t/ide-for-root/22418 "2016-12-28T13:00:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lghizoni\_dk](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/cc9497/32.png) [@lghizoni\_dk](https://root-forum.cern.ch/u/lghizoni_dk)\
**Post date:** [December 28, 2016, 1:00pm UTC](https://root-forum.cern.ch/t/ide-for-root/22418/1 "2016-12-28T13:00:07Z")

</div>

Hi All,

I would like to know of there’s a nice IDE for ROOT? Until now I work with Gedit, but I wonder if there’s something more interactive, completing functions etc, like for Python there’s Atom for example.

Thank you in advance 🙂

---

<div class="post-metadata">

**Author:** ![ferhue](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ferhue/32/29462_2.png) [@ferhue](https://root-forum.cern.ch/u/ferhue)\
**Post date:** [December 29, 2016, 8:01pm UTC](https://root-forum.cern.ch/t/ide-for-root/22418/2 "2016-12-29T20:01:20Z")

</div>

Try geany

---

<div class="post-metadata">

**Author:** ![maartenb](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/maartenb/32/11083_2.png) [@maartenb](https://root-forum.cern.ch/u/maartenb)\
**Post date:** [December 31, 2016, 11:44am UTC](https://root-forum.cern.ch/t/ide-for-root/22418/3 "2016-12-31T11:44:38Z")

</div>

Hi,

Eclipse/CDT is a pretty good C++ IDE.

Cheers,  
Maarten

---

<div class="post-metadata">

**Author:** ![behrenhoff](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/behrenhoff/32/12285_2.png) [@behrenhoff](https://root-forum.cern.ch/u/behrenhoff)\
**Post date:** [January 2, 2017, 11:49pm UTC](https://root-forum.cern.ch/t/ide-for-root/22418/4 "2017-01-02T23:49:27Z")

</div>

I am using KDevelop from [https://www.kdevelop.org/download](https://www.kdevelop.org/download). I prefer it over Eclipse because it feels more lightweight to me. Since version 5, it uses clang under the hood for syntax checking and completion. If you put your $ROOTSYS/include path in the file ~/.kdev\_include\_paths, KDevelop will find all ROOT includes for any cpp file in your home directory or below (beware: if you are using the extension .C, then please change settings so that .C is parsed as C++, not as C).

And if you are using cmake, you can simply open the CMakeLists.txt file and compile/run/debug/git-commit from within KDevelop.

I am using the Linux version and have no idea if Windows&Mac versions are usable for production.

In Eclipse I was annoyed with all the project settings, it seems to heavy to me if you just want to write a plotting script.

That said, Eclipse+CDT is of course an excellent choice! Definitively use an IDE with syntax completion and C++ checking!

---

<div class="post-metadata">

**Author:** ![jmansour](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jmansour/32/11688_2.png) [@jmansour](https://root-forum.cern.ch/u/jmansour)\
**Post date:** [January 4, 2017, 7:14pm UTC](https://root-forum.cern.ch/t/ide-for-root/22418/5 "2017-01-04T19:14:12Z")

</div>

If you know vim, you might try [YouCompleteMe](https://github.com/Valloric/YouCompleteMe). It is based on clang, and has excellent code completion and warning/error highlighting (basically like Xcode on mac). It takes a while to setup though. But with YCM, I find it actually more pleasant to write .C scripts than .py scripts 🙂.

---

<div class="post-metadata">

**Author:** ![ferhue](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ferhue/32/29462_2.png) [@ferhue](https://root-forum.cern.ch/u/ferhue)\
**Post date:** [March 3, 2022, 6:57pm UTC](https://root-forum.cern.ch/t/ide-for-root/22418/6 "2022-03-03T18:57:28Z")

</div>

Check out how to setup QtCreator IDE to build and debug ROOT scripts here:

> **[Coding in ROOT with the horsepower of an F1](https://root.cern/blog/code-horsepower-f1/)**
>
> If you’ve ever rubbed your eyes trying to decrypt C++ compilation errors from a terminal, traced those back to the line in the ROOT script you were just typing in your plain text editor, then googled CERN ROOT TTree to fix the signature of that...
