11

Are there any tutorials on how to use MS Visual Studio Code to write contracts in solidity?

3 Answers 3

8

Not sure on specific VS tutorials, but this is a generic tutorial for solidity: http://solidity.readthedocs.org/en/latest/

which should work on: https://visualstudiogallery.msdn.microsoft.com/96221853-33c4-4531-bdd5-d2ea5acc4799

1
  • 1
    Thanks Nikhil this will do for now, though I hoped to get a video tutorial
    – Kizito
    Commented Mar 31, 2016 at 18:43
16

For Visual Studio Code, there is an extension which provide syntax highlighting. Installing solidity in visual studio code

To install:

Press Ctrl + P and type "ext install ". Note: The trailing space. Type "Solidity", click in the extension and you are done.

You can find it also in the Visual Studio Code Marketplace

This is an example using the Theme Dark+ Using visual studio code with solidity

Note: The bug on the Linux version of Visual Studio Code, has been fixed in the latest version. Many thanks to @dotnetjunkie for your help.

To install the latest version:

  • Press F1
  • Type ext update
  • Select solidity

More info on the fix here: Syntax highlighting for Solidity VS Code extension not working on linux

10
  • Hey Juan... I did install the extension although its not looking colorful as yours
    – Kizito
    Commented Apr 1, 2016 at 2:56
  • Change your theme to Dark+, go to File -> Preferences -> Themes ->Dark+ Commented Apr 1, 2016 at 6:57
  • Still no difference. My file is saves with the .sol extension as well but nothing is happening
    – Kizito
    Commented Apr 1, 2016 at 13:57
  • Are you using Visual Studio Code? or Visual Studio? The OP is for visual studio code... but the accepted answer points to the extension of Visual Studio (just checking we are talking about the same thing :) ) Commented Apr 1, 2016 at 14:44
  • Yes I am using Visual Studio Code Version 0.10.11. Check it out here -> [url=postimg.org/image/w0d18qr0j/]
    – Kizito
    Commented Apr 1, 2016 at 15:40
2

You can find a tutorial for this on my msdn blog.

Also some quick videos on this as well:

3
  • 3
    Typically on StackExchange, we prefer to not have "link-only" answers. However, since the poster was literally asking for this, I'm not sure how to handle it. Please, don't make a habit of this & if you could possibly expand on your answer (what does the tutorial cover, etc) that would be great. Thank you.
    – tayvano
    Commented Apr 2, 2016 at 3:21
  • Hi the OP refers to Visual Studio Code not Visual Studio there is another Q&A for that ethereum.stackexchange.com/questions/2463/…, you should add that info on the other post, good tutorial :) Commented Apr 2, 2016 at 5:39
  • 1
    Welcome to Ethereum! A link alone is not considered a good answer. Links may break and the answer becomes worthless later even if the linked material answered the question initially. At least if you include a summary, the answer can somewhat stand on its own.
    – q9f
    Commented Apr 7, 2016 at 8:04

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.