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, 2017 at 11:37

1 Answer 1



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 and acknowledge you have read our privacy policy.

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