If you’ve played with an Arduino, you’ve probably been frustrated by the IDE. It works, but it’s not the best editor. It’s especially painful for bigger files and larger projects. The Stino plugin for Sublime Text aims to solve this issue by bringing the full functionality of the Arduino IDE to the Sublime Text editor.
Sublime Text is a powerful text editor with support for most programming languages. What it’s missing is support for compiling and uploading code to an Arduino. Stino bridges that gap. Sublime is a commercial product, and retails for $70 USD. However Sublime does have an indefinite trial period, so Stino can be evaluated for free. Stino itself is an open source plugin written in Python, and you can contribute to the project on Github.
After installing Sublime and Stino, you point the plugin at an Arduino install folder. It then allows you to build and flash directly from the editor. For anyone who’s been frustrated with the Arduino IDE, this looks like a slick solution.
[Thanks to Matt for the tip!]
Is it possible to use stino standalone in a similar manner to inotool?
inotool looks like it requires an Arduino install. Using stino is instead of using the Arduino IDE altogether, not just using the Arduino IDE with an external editor. I don’t have to launch the Arduino IDE to program a board with stino.
If you want a stand-alone tool for compilation/upload that runs on the command line, check out http://platformio.org/
I use it for my Arduino projects as I hate the Arduino GUI and don’t have time to mess with make.
Sublime Text is a beautiful editor. It’s a shame that open source projects rarely measure up to this level of UI polish.
Of course there are exceptions to this. But this is a general trend I have noticed.
https://github.com/limetext/lime
I use uultraedit as an IDE it works great.
The Arduino IDE lets you use an external editor – see prefs->”Use external editor”
The trick to writing large programs in the Arduino IDE is to split it into various “.h” files (nb. NOT “.c” or “.cpp”) files) then #include them in the main one where setup()/loop() are.
At least in the older versions (pre 1.0) it was possible (and quite useful) to split programs into multiple *.cpp and *.h files.
I have a couple of sketches which are larger than 1k LOC and spread over multiple files.
How??
I LOVE UE!!
I think Notepad++ is better…
‘nedit’ allows you to define you own syntax hilighting and you can script function keys. You cant apply themes to the interface and it dosn’t use textures….
Singularly bad choice for the editor.
Why?
Finally. Thank goodness I don’t have to go back to the Arduino IDE ever.
TextMate 2.0 using the Arduino bundle(bundled with text mate by default) works perfectly well too.
Why not use your favorite IDE? When finished you can upload it using the Arduino IDE.
You don’t need the Arduino IDE just to upload a HEX file to an AVR. It should be simple enough to call avrdude from another IDE.
I USS Komodo IDE for all my work.
Just make the leap and use Atmel studio and get over with it. There are various articles on the net that show you how to pull the Arduino libraries into AS.
Isn’t Atmel Studio Windows only?
Sublime Text is closed source and payware for continuous use. There are a lot other good open and free devel systems out there. Some already support AVR development, some don’t. I would put more effort in contributing to integrate those ones rather than a proprietary product.
http://www.anjuta.org/
http://www.codeblocks.org/
http://codelite.org/
etc.
I would include to this list the “Maria Mole” IDE for Arduino. Provides support for multiple files and multiple projects, can import Arduino libraries, etc. Nevertheless is free (open source) and looks more familiar for both Arduino IDE users and traditional IDE users
http://http://dalpix.com/mariamole
Minor correction, link is: http://dalpix.com/mariamole
Still not multiplatform for now but really interesting, thanks.
Add also Arduide
Well it is great for those already working with sublime text like me. I came from netbeans but that froze up too many times so I had to change and now I’m able to also program my arduinos – win situation that made my day!
Great editor but there is no reasonable C/C++ code completion plugin (at least on Linux)
There is one outdated, not supported (sublime clang) so it is not best ide for arduino since there is no real support for C/C++ inside editor.
..i agree, QT Creator would be the best one imo. Some people have got it to work for Arduino. Its theeee best C++/C ide around by far, and its free :)
I figure out how to install it. Now it won’t compile a simple blink demo. I also don’t see my standard arduino hardware list. Now all the menu or arduino are gray out.
I see a lots of great feature for the few minutes of use. I will un-install it. I will stick with visual micro even if there is some bugs.
Also Sublime Text may be downloaded and evaluated for free, however a license must be purchased for continued use.
You need to tell the plugin your install location of the arduino ide. Then you should see the list of arduino hardware
I did this by following those steps. I close and reopen the software. No luck.
Go some good tutorial?
Click the menu Preferences->Show Arduino Menu, Arduino Menu will appear.
Click the menu Arduino->Preferences->Select Arduino Folder.
Select your Arduino Application Folder in the quick panel. This is the location where Arduino.app is installed.
Once you’ve selected the appropriate directory, you will see the message like the Step 4 in the following figure.
One thing that was a little unclear for OS X Mavericks, I thought you needed to type in the directory path of the Arduino.app location. DOH! It took me a while to find out how to do it. Turns out you need to click below the prompt, and then it pulled up a directory path click link. Don’t type it, it doesn’t work if you type it.
Haha just found it yesterday on stackoverflow, while searching for better arduino ide and today it’s on hackaday :D. sometimes I think hackaday is reading my mind…
Well I had a look and its not “Simple” is it . I use Arduino IDE and its simple. Why change .Keep code snippets in text files and you don’t need much more .
Thiis is just an advertising beat up and they probably paid for it too.
Rubbish
Sublime is the core of my workflow for web design and arduino and whatever. Now that I finally have some money I will be purchasing it in the next couple of days. If you don’t want to pay $70 for a text editor that’s perfectly understandable, but for those people like me that spend all day working with text documents of all types it’s worth it. I could use some other editor sure, but I’ve grown accustomed to Sublime and it’s got some really neat features. The only thing I dislike about Stino is you have to close the serial monitor tab before you can do an upload. Not a terribly big deal, but it’d be nice to avoid that.
Pat, I agree fully with you. I’m in Subllime like 80% of my work hours and good portion of my free time for hobbies as well. Now I can ditch the Ardu IDE and use ST a bit more. Not that I use arduinos that much, but it happens every now and then.
Best for programming user since old Aurora and inside Arduino, just near perfect.
You might want to try Notepad++ N++ plugin for Arduino … Syntaxhighlight, language reference, variables list, very good!! See my tutorial to see how to setup this together.
http://stonez56.blogspot.tw/2015/04/a-better-arduino-ide-notepad.html
I don’t have ‘arduino’ menu. How can I install sublime text with ‘arduino’ menu?
Please check out this tutorial. It is in Chinese, but you could just use Google Translate to see how to install Stino plugin. http://stonez56.blogspot.tw/2014/01/arduino-sublime-2-stino-plugin-mac.html
Stonez56
Oh man, fantastic! Thanks you!