EOSIO C++ IntelliSense in VSCode
EOSIO C++ IntelliSense in VSCode
If you're a developer nowadays chances are high that you're using VSCode as your IDE of choice.
It's my favourite IDE for web development, but I also use it for C++ EOSIO smart contract development because it's free, unlike the CLion alternative.
Per default, there is no IntelliSense (code completion, jump to class definitions, etc.) for EOSIO smart contract development which is a big productivity killer.
However, there's an easy way to enable it for your VSCode workspace.
- Install and enable the C/C++ IntelliSense Extension
- Edit C++ Configuration:
CMD + SHIFT + P=>C/C++: Edit Configuration (UI)- In the Include paths sections add the path to your
eosio.cdtinclude directories and optionally your whole worksapce folder.
${workspaceFolder}/**
/usr/local/opt/eosio.cdt/opt/eosio.cdt/include/eosiolib/core/**
/usr/local/opt/eosio.cdt/opt/eosio.cdt/include/eosiolib/contracts/** - In the Defines section add definitions for
uint128_t. (When I didn't add this I encountered error lines below eachuint128_t.)
uint128_t=__uint128_t
int128_t=__int128_t
- In the Include paths sections add the path to your
After reloading VSCode, you should be able to see the definitions when pressing CMD + clicking on expression:
Originally published at https://cmichel.io/eosio-c-intelli-sense-in-vs-code/
Leave EOSIO C++ IntelliSense in VSCode to:
Read more #eos posts
Best Posts From cmichel
We have not curated any of cmichel's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From cmichel
- How I gamed EOS Defi projects and still got rekt
- Progress Report - September 2020
- How to install an old package version with brew
- Fixing C++ compilation bugs for the MacOS Catalina upgrade
- Progress Report - August 2020
- Progress Report - July 2020
- Obfuscating EOSIO smart contracts
- Progress Report - June 2020
- Progress Report - May 2020
- Typing transformations in TypeScript