create account

EOSIO C++ IntelliSense in VSCode by cmichel

View this thread on: hive.blogpeakd.comecency.com
· @cmichel ·
$0.02
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.

1.  Install and enable the [C/C++ IntelliSense Extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools)
2.  Edit C++ Configuration: `CMD + SHIFT + P` => `C/C++: Edit Configuration (UI)`
    1.  In the **Include paths** sections add the path to your `eosio.cdt` include 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/**
    2.  In the **Defines** section add definitions for `uint128_t`. (When I didn't add this I encountered error lines below each `uint128_t`.)
            uint128_t=__uint128_t
            int128_t=__int128_t
        ![CPP Configuration](https://cmichel.io/eosio-c-intelli-sense-in-vs-code/cpp-config.png)

After reloading VSCode, you should be able to see the definitions when pressing CMD + clicking on expression:

![EOSIO Intelli Sense](https://cmichel.io/eosio-c-intelli-sense-in-vs-code/intelli-sense.png)

[![Learn EOS Development Signup](https://cmichel.io/images/learneos_subscribe.png)](https://learneos.dev#modal)

* * *

Originally published at <https://cmichel.io/eosio-c-intelli-sense-in-vs-code/>
👍  , ,
properties (23)
authorcmichel
permlinkeosio-c-intelli-sense-in-vs-code
categoryeos
json_metadata{"tags":["eos","utopian-io","tutorials","steemdev","programming"],"format":"markdown","app":"steemit/0.1"}
created2020-04-20 16:47:27
last_update2020-04-20 16:47:27
depth0
children0
last_payout2020-04-27 16:47:30
cashout_time1969-12-31 23:59:59
total_payout_value0.016 HBD
curator_payout_value0.007 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,770
author_reputation1,950,560,061,631
root_title"EOSIO C++ IntelliSense in VSCode"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,923,133
net_rshares58,091,538,621
author_curate_reward""
vote details (3)