What I need is an IDE as advanced as Eclipse, that would tell me if certain imports are missing, variables not declared, compile errors, and so on... I am using Linux so Visual Studio won't work for me (unless a Linux version).

The question about C++ version is already answered here: Which version of C++ can I use in smart contracts?

I need an IDE that would allow me to import eos-master project and allow me to code the smart-contracts inside the contracts directory, with all the coding warnings/solutions that advanced IDEs usually give.

Today I'm using Visual Code (which works in Linux, because I'm on OSX) but I think the easiest one to setup with a nice intellisense (autocomplete), debug and tests is CLion from Jetbrains.

In this workshop Kevin Heifner teaches how to setup the IDE: https://objectcomputing.com/resources/events/webinars/building-apps-with-eos/recording

  • right, I also use clion, vs code is also a good choose, but you must to learn many plugins and do many configurations. – Jimmy Guo Jul 16 at 12:21

Eclipse

Using Eclipse works just fine for me.

In order to get it to see all of the appropriate header files, you have to make a symbolic link to the correct folder.

For example, if I want to use the hello contract from my home directory:

~/hello/hello.cpp

I would do the following:

cd ~/hello
ln -s /path/to/eos
ln -s /path/to/boost

Then in Eclipse I would choose to create a new project using existing makefile, and give it the ~/hello directory as the location.

The intellisense will then automatically read the eos and boost folders and it makes things much easier!

Here is an additional tutorial for using Eclipse (including how to do the symbolic links on Windows): https://steemkr.com/eos/@tokenika/using-eclipse-ide-for-eos-smart-contracts

Visual Studio

I found a tutorial that lets Windows 10 users use Visual Studio: https://steemit.com/eos/@mmcs/building-eos-with-visual-studio-2017-for-windows-10

  • Any plugins to you would recommend ? – Display Name Jul 21 at 12:40
  • 1
    Well I usually work in command line terminal for everything. So if you like using vim then you can get vwrapper, which lets you use vim commands in Eclipse. Other than that though, I don't actually use any plugins – Phillip Hamnett - EOS42 Jul 21 at 12:41
  • Vim is great, please don't get me wrong, but it is a skill many of us are not willing to pursue :) Thank you for a reply ! – Display Name Jul 21 at 12:47

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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