Use Sublime text 3 Editor As Arduino IDE (To edit & upload Arduino sketch into Arduinos)
I found Arduino IDE not a good tool to edit arduino sketches & upload it in Arduino, especially in my Linux system(Editor kinda sucks & it's slow). So, I searched a lot for alternative & finally found a great editor in which by using external extensions, I can use it as Arduino IDE. Simply flawless, believe me.
What you'll need ?
- Sublime Text 3
- Arduino IDE
- Computer with Internet connection
- Common-sense
Step 1 : Download & Install Arduino IDE
For OS X & Windows Users :
Visit official #-Link-Snipped-# & download Arduino IDE & install it.
For Linux Users :
Visit #-Link-Snipped-# & download 32-bit or 64-bit version of Arduino (depending upon your arch)
It will be in .tar.gz format. Extract it & place it /home/
Step 2 : Download & Install Sublime Text 3
For OS X & Windows Users :
Visit official Download - Sublime Text & download the editor.
For Linux Users :
Ubuntu Users : You can visit Download - Sublime Text & download .deb file
For Other Linux Users, I will recommend not to download that tarball which is available in official website. Because, even if you successfully start the sublime text editor & edit Arduino sketches, you won't be able upload the sketch in Arduino, because of SU permission.
Though for Fedora Users, I have a good alternative which overcomes this problem : #-Link-Snipped-#.
If you're fedora user, then download 'Fedora Utils'. To download Fedora Utils. Open terminal & type :
Now, once installed; launch application menu & start 'Fedora utils', a dialog box will open with few main options.
Click on second option named 'Install additional software' & click on select.
Another dialog box will open with list of installable softwares, In second last option there is option called ' Install Sublime text 3', click on it & installation will proceed.
Step 3 : Adding Arduino Extension To Sublime text 3
For OS X & Windows Users :
- Open Sublime Text 3
- Click on Preference -> Package Control
- Select Package Control : Install Package
- Input 'Arduino' in dialog box & select 'Arduino-like IDE'
For Linux users :
- Open terminal & type :
- Followed by
Search 'Arduino' in dialog box & click on 'Arduino-like IDE'
Step 4 : Configuring Sublime Text 3 for Arduino
For All Users :
- In Sublime Text Editor, at top you'll find one more tab called -> 'Arduino'
- Click on it & select 'Preference' -> 'Select Arduino Application Folder'
- Select the location where your Arduino is installed.
( For Linux users, select the location /home/ & click on extracted 'arduino' folder)
- Again Click on Arduino tab in Sublime text 3 & click on 'Arduino AVR Boards' & select your board.
- Then click on 'Programmer' under Arduino tab of Sublime Text 3 & select programmer you wanna use.
Few images related to tutorial, tested by me in Fedora 19 :
Compiling/Verifying :

Uploading sketch to Arduino :

Testing In Hardware :

Happy hacking & coding 👍
Have any problem in configuring ? Need any help ? Feel free to comment below.
Cheers.
What you'll need ?
- Sublime Text 3
- Arduino IDE
- Computer with Internet connection
- Common-sense
Step 1 : Download & Install Arduino IDE
For OS X & Windows Users :
Visit official #-Link-Snipped-# & download Arduino IDE & install it.
For Linux Users :
Visit #-Link-Snipped-# & download 32-bit or 64-bit version of Arduino (depending upon your arch)
It will be in .tar.gz format. Extract it & place it /home/
Step 2 : Download & Install Sublime Text 3
For OS X & Windows Users :
Visit official Download - Sublime Text & download the editor.
For Linux Users :
Ubuntu Users : You can visit Download - Sublime Text & download .deb file
For Other Linux Users, I will recommend not to download that tarball which is available in official website. Because, even if you successfully start the sublime text editor & edit Arduino sketches, you won't be able upload the sketch in Arduino, because of SU permission.
Though for Fedora Users, I have a good alternative which overcomes this problem : #-Link-Snipped-#.
If you're fedora user, then download 'Fedora Utils'. To download Fedora Utils. Open terminal & type :
su -c "curl https://download.opensuse.org/repositories/home:/satya164:/fedorautils/Fedora_19/home:satya164:fedorautils.repo -o /etc/yum.repos.d/fedorautils.repo && yum install fedorautils"This will download & install Fedora utils in your Fedora system.
Now, once installed; launch application menu & start 'Fedora utils', a dialog box will open with few main options.
Click on second option named 'Install additional software' & click on select.
Another dialog box will open with list of installable softwares, In second last option there is option called ' Install Sublime text 3', click on it & installation will proceed.
Step 3 : Adding Arduino Extension To Sublime text 3
For OS X & Windows Users :
- Open Sublime Text 3
- Click on Preference -> Package Control
- Select Package Control : Install Package
- Input 'Arduino' in dialog box & select 'Arduino-like IDE'
For Linux users :
- Open terminal & type :
sudo apt-get install gitor
yum install gitor anyother depending upon your distribution.
- Followed by
cd ~/.config/sublime-text-3/Packages- Then type
git clone https://github.com/wbond/sublime_package_control.git "Package Control"- And lastly
cd "Package Control"Now to add Arduino extension, Open sublime text 3 & press 'Ctrl+Shift+P' & click on 'Package Control : Install Package'
Search 'Arduino' in dialog box & click on 'Arduino-like IDE'
Step 4 : Configuring Sublime Text 3 for Arduino
For All Users :
- In Sublime Text Editor, at top you'll find one more tab called -> 'Arduino'
- Click on it & select 'Preference' -> 'Select Arduino Application Folder'
- Select the location where your Arduino is installed.
( For Linux users, select the location /home/
- Again Click on Arduino tab in Sublime text 3 & click on 'Arduino AVR Boards' & select your board.
- Then click on 'Programmer' under Arduino tab of Sublime Text 3 & select programmer you wanna use.
Few images related to tutorial, tested by me in Fedora 19 :
Compiling/Verifying :

Uploading sketch to Arduino :

Testing In Hardware :

Happy hacking & coding 👍
Have any problem in configuring ? Need any help ? Feel free to comment below.
Cheers.
Replies
-
Abhishek RawalIn addition,
Manual way to install Arduino Extension :
- Download the 'Stino-master.zip' file & extract it.
- Now, Open Sublime text 3 & click on Preferance- > Browse Packages.
- Paste the extracted folder from 'Stino-master.zip' into 'Packages' folder.
- Restart sublime text 3.
That's all. -
Abhishek RawalUpdate :
Just incase, you don't like Sublime Text 3 & prefer Eclipse for overkill Arduino projects then you can add Arduino in Eclipse IDE too.
For step-by-step tutorial visit : #-Link-Snipped-#
However, I found Sublime text 3 better than Eclipse for Arduino. But that's just me. -
Zakk HotyHey! Great. I've got to step 4 on OSX Mavericks, but the Select Arduino Folder is grayed out. Also the example files appear, but are grayed out. Any idea what's going on here?
-
Zakk HotyZakk HotyHey! Great. I've got to step 4 on OSX Mavericks, but the Select Arduino Folder is grayed out. Also the example files appear, but are grayed out. Any idea what's going on here?
UPDATE: I reinstalled both Sublime and Stino with the same results. I then realized that you must copy the Stino filed into the User folder under Browse Packages. Restart, and BAM. -
Abhishek RawalAlright I have created a quick video on this too. Here it is :
-
Rei ViloThank you for the detailed procedure! It worked right away the first time.
Now on Mac OS X, if you prefer Xcode to Sublime Text, give Embedxcode - Tin Tức Làm Đẹp a try. It's a template for Xcode with support for all major boards, including Arduino, chipKIT, LaunchPad, Microduino, Teensy, Wiring, ... -
Abhishek Rawal
#-Link-Snipped-# Glad to help.Rei ViloThank you for the detailed procedure! It worked right away the first time.
I don't really use Windows or OS X, so I can't really test that template.Rei ViloNow on Mac OS X, if you prefer Xcode to Sublime Text, give Embedxcode - Tin Tức Làm Đẹp a try. It's a template for Xcode with support for all major boards, including Arduino, chipKIT, LaunchPad, Microduino, Teensy, Wiring, ...
We have many CEans who do use OS X, they can surely give a try to embedXcode.
Being Vim user, I am looking for something similar for that too. I would be glad if I can create code for Arduino in my favourite editor, Vim. Any suggestions ? -
Andy CroftsOh, My!
That's beautiful! Now all I need to do is muck about with Sublime Text's colours, and I'm a Very Happy Bunny™
Thanks very much for Your hard work on this.
Andy
Oulu, Finland -
Abhishek Rawal#-Link-Snipped-# Glad you liked it.
Cheers. -
fatroshiThanks for the tutorial, I've done all steps provided but I keep getting this error:
Compiling hello...
Creating C:\Users\UserName\Documents\Arduino_Build\hello\hello.ino.cpp.o...
'"avr-g++"' is not recognized as an internal or external command,
operable program or batch file.
[Stino - Error 1] -
Abhishek Rawal
Check this out : #-Link-Snipped-#fatroshiThanks for the tutorial, I've done all steps provided but I keep getting this error:
Compiling hello...
Creating C:\Users\UserName\Documents\Arduino_Build\hello\hello.ino.cpp.o...
'"avr-g++"' is not recognized as an internal or external command,
operable program or batch file.
[Stino - Error 1] -
Carlos Enrique BährenDear Abhishek,
i followed you installation tips but i failed to have a functional Sublime text with Arduino
i see the arduino in the menu but not the follwing submenu with the different Arduino Boards.. i don't find it! :
-Again Click on Arduino tab in Sublime text 3 & click on 'Arduino AVR Boards' & select your board.
----
i press Arduino-Board-Refresh and it appears nothing!
Thanks in advance for the advice!!
Carlos Enrique
You are reading an archived discussion.
Related Posts
I'm shocked & stunned after reading about the proposed and upcoming banking reforms in India initiated by the Reserve Bank Of India (RBI) in ET. The newly appointed RBI chief,...
I am planning to buy a new bike😁 At first my options were Yamaha R15 and CBR 150R...but they are as common as any other bikes in the city these...
I had a good time in CE and I was surfing the chit chat section by filtering it by most number of replies and I feel so guilty that tough...
Since last few weeks, I was learning "How to optimize websites", because I had great issues with my own personal website, I never received more than 60% rating for my...
Hello,
I need some enlightenment on this question that am not clearly able to think about in the last few hours so. I believe someone here can help me discussing...