Sublime Text and Stino: Best IDE you can have.

Stino is a Sublime Text plugin for upload/compile arduino sketches. Im using it on ElementaryOS (Ubuntu based) and can't imagine a better IDE. Sublime Text has plugins for code completion, snippets,and lots of stuff... everything is there.
If you are curious, take a look at

This is a plugin installer for Sublime Text plugins :
http://wbond.net/sublime_packages/package_control

After install, do a search for arduino snippets.

this is a snippet collection not listed in package installer ( very good snippets there):

The coolest plugin i've found for Sublime Text and Arduino upload/compile.Kudos to the developer:
http://kaixin.netii.net/stino-a-sublime-text-2-plugin-for-arduino.html#comment-16

Forget about Eclipse, Netbeans and other editors...

Cheers.

Hi, Tomasi, you are nice.

I will give it a try.

Nice!
With 1.5.2 (XP):

  1. it does not show sketches with deeper directory structure (ie. c:/mysketchfolder/XX/YY/my.ino)
  2. it has problem to compile sketches with multiple files (cannot find the main with setup and loop)..

This plugin is still under development, so there are still problems remaining.

I can't believe I haven't found this before! I love Sublime, this is great! Thank you for making this plugin.

I'm interested in using avr assembly to program my Arduino (need that extra oompf for video out). I'm using OS X so AVR Studio is not an option. Any chances that Stino would one day support assembly programming? :slight_smile:

I don't think it's difficult to add support of assembly. But I need some information:

  1. the extension name of assembly files? is ".S"?
  2. compilation command?

In Arduino platform.txt, there is one line:
compiler.S.flags=-c -g -assembler-with-cpp
but there is no compilation command.

Ay!!!

Really, really cool plugins.
Thanks.

Hurra to @Robot-Will... (i kiss your feet) :wink:

Thanks for the tip! I love keeping everything within Sublime.

As it costs $70 I will stick with Gedit and maybe spend the money on Arduino hardware.

...R

Your last item is flagged as an unsafe page (http://kaixin.netii.net/stino-a-sublime-text-2-plugin-for-arduino.html#comment-16) .
Both VirusTotal and Comodo flagged it.

Note for Due users:
If you install SublimeLinter, you can get Linting on Arduino files by editing the following in SublimeLinter > Settings - User:

"linters": {
"clang": {
"@disable": false,
"args": [],
"excludes": [],
"extra_flags": "",
"include_dirs": [
"/path/to/arduino-1.5.5/hardware/arduino/sam/cores/arduino",
"/path/to/arduino-1.5.5/hardware/arduino/sam/system/libsam/",
"/path/to/arduino-1.5.5/hardware/arduino/sam/variants/arduino_due_x",
"/path/to/arduino-1.5.5/hardware/arduino/sam/system/CMSIS/Device/ATMEL/",
"/path/to/arduino-1.5.5/hardware/tools/g++_arm_none_eabi/arm-none-eabi/include/",
"/path/to/arduino-1.5.5/hardware/tools/g++_arm_none_eabi/lib/gcc/arm-none-eabi/4.4.1/include",
}
},

Where "/path/to/arduino-1.5.5" is the path to your arduino IDE install.
However, this only affects CPP/H files unless you open an INO file and click on the bottom right (where it says Arduino) and select "Open all with current extension as..." > C++.
Thanks Robot Will, your plugin is excellent!

I have some problems with Sublime text. For example some code that is compiling in the Arduino IDE it is not working in the Sublime Text.

For example I have the following errors:

C:\Users\***********\Controller_v3_2.ino.cpp:509: error: 'SPI_CONTINUE' was not declared in this scope
C:\Users\***********\Controller_v3_2\Controller_v3_2.ino.cpp:510: error: 'SPI_LAST' was not declared in this scope

I have no idea how to solve this problem. Could you help me?

SPI_CONTINUE and SPI_LAST do not appear to be in the Arduino package ( 1.0.5 ). You might have left out/improperly included a library and/or sublime might not define something that is used to conditionally include the SPI_x symbols.

Hi,

I just added support for assembly files used in your sketch or external libraries.

If Robot-Will accepts the modification, it will be on his github repo, but if you're hurry, use mine instead: https://github.com/HectorBravo/Stino

Robin2:
As it costs $70 I will stick with Gedit and maybe spend the money on Arduino hardware.

...R

Same here. 70 dollars can buy a lot of arduinos trinkets. I will stick with Notepad ++ with added arduino keywords.

Why can't I get this to work ?

I'm using XP and have downloaded SublimeText 3; this is in C: Program Files/Sublime Text 3. I ran this and did the Python code fragment into the console from the GitHub Robot Will page. This has put a file into Documents and Settings//Application Data / Sublime Text 3/Installed Packages, which has the name "Package Control.sublime-package" and is 130KB in size . SublimeText is registered but I'm not getting anything that is showing 'Arduino' in any of the menu items.

Where have I gone wrong.

Rob

Riva:

Robin2:
As it costs $70 I will stick with Gedit and maybe spend the money on Arduino hardware.

...R

Same here. 70 dollars can buy a lot of arduinos trinkets. I will stick with Notepad ++ with added arduino keywords.

There is an unlimited evaluation period, not a trial. The evaluation is full featured. It also doesn't bug you about purchasing a license.

robgraham:
Why can't I get this to work ?

I'm using XP and have downloaded SublimeText 3; this is in C: Program Files/Sublime Text 3.
...
Where have I gone wrong.

Rob

I believe that Sublime Text 2 is the current stable version (specifically 2.0.2). Try installing that version instead. I think 3 is currently in Beta, which may be breaking the plugin.

Has anyone had problems with the serial monitor in Sublime Text 2 / Stino ?
I open it through the Arduino menu in Sublime Text and nothing shows up. I'm set to the correct serial port and I'm running a sketch that prints to the monitor. It works fine when I test it in the Arduino IDE. What am I doing wrong?