I'm just starting coding in solidarity. I want my syntax highlighter Vim Solidity to make my code look pretty.

What filename extension should I use for my source code?

For example, Javascript uses .js.

What does Solidity use?

  • yes, you should use filename.sol extension for solidity files.
    – Vijesh
    Sep 23 '17 at 11:37


The wiki page on the command line compiler says to use .sol as the file name extension.

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.