11

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

dbryson
  • 6,403
  • 2
  • 27
  • 37
Kizito
  • 779
  • 1
  • 8
  • 17

3 Answers3

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

Juan Blanco
  • 1,405
  • 11
  • 12
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

2

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

Also some quick videos on this as well:

q9f
  • 32,913
  • 47
  • 156
  • 395
  • 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 Apr 02 '16 at 03:21
  • Hi the OP refers to Visual Studio Code not Visual Studio there is another Q&A for that http://ethereum.stackexchange.com/questions/2463/how-to-install-solidity-in-visual-studio/2495, you should add that info on the other post, good tutorial :) – Juan Blanco Apr 02 '16 at 05: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 Apr 07 '16 at 08:04