15
\$\begingroup\$

I'm on Mac OS X and have a license for IntelliJ Ultimate. Is it at all possible to use IntelliJ as an IDE for Arduino projects?

\$\endgroup\$
4
\$\begingroup\$

I've opted for using XCode, managed to find some templates online. Way better than using the standard Arduino IDE.

\$\endgroup\$
  • \$\begingroup\$ Eclipse (On windows) with AVRDUDE works well, eclipse can run on Mac, though I'm not sure if the AVRDUDE plugin will. \$\endgroup\$ – Paul Jul 31 '15 at 14:41
4
\$\begingroup\$

You can use PlatformIO together with any IntelliJ product. Here is an article about how to wire them together: http://jandevblog.blogspot.com/2016/01/how-to-use-intellij-idea-to-develop-and.html

\$\endgroup\$
4
\$\begingroup\$

You can now use Jetbrains' CLion to develop and run Arduino sketches. Just grab the Arduino plugin!

Open Clion and go to Configure/Settings/Plugins. Choose 'Browse Repositories' search for Arduino, and click install. (There are two. One is a fork of the other. I recommend picking the one that was updated more recently.) Then restart Clion.

You'll now see the option to create a new Arduino Sketch Project!

New Arduino project

\$\endgroup\$
3
\$\begingroup\$

You will only get limited support. There is a plugin available for C/C++, which will help you with stuff like code completion and syntax highlighting (you will need to define the sketches file type as C files). You also can integrate external tools (in the global settings), to add support for e.g. compiling and uploading sketches.

But you won't get any specialized support (like choosing which board you have, or browsing sketches), you need to configure everything manually. If you can live with that, IntelliJ IDEA might even be better for day-to-day editing work. 8Note that I didn't try anyone of these things...)

\$\endgroup\$
2
\$\begingroup\$

A late answer, but perhaps of help to someone:

IntelliJ ReSharper C++ comes quite close to supporting Arduino. Here's a ticket for the key tweak, supporting the .INO file extension: http://youtrack.jetbrains.com/issue/RSCPP-5683

\$\endgroup\$
1
\$\begingroup\$

As was mentioned in a previous answer, the best bet for someone who is already familiar with the IntelliJ family of products is to use CLion with the Arduino and Serial Port Monitor plugins. Here are the steps to get started:

(Preliminary - if you are on Windows 8 or 10, make sure you have installed the Arduino IDE using the full-download from https://www.arduino.cc/download_handler.php. Do NOT install it via the Windows Store because it will not install the SDK at the expected location.)

When you have completed these steps, you can create a new Arduino Sketch project which will automatically create a CMake file for you, which you can edit to configure the type of board you are using and the serial port, etc. Here is an example:

cmake_minimum_required(VERSION 2.8.4)
set(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/cmake/ArduinoToolchain.cmake)
set(PROJECT_NAME HelloArduino)
project(${PROJECT_NAME})

set(${CMAKE_PROJECT_NAME}_SKETCH hello_arduino.ino)

#### Uncomment below additional settings as needed.
# set(${CMAKE_PROJECT_NAME}_BOARD mega)
# set(${CMAKE_PROJECT_NAME}_PORT /dev/ttyACM0)
# set(mega.build.mcu atmega2560)
# set(mega.upload.protocol wiring)
# set(mega.upload.speed 115200)

generate_arduino_firmware(${CMAKE_PROJECT_NAME})
\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.