Are there any tutorials on how to use MS Visual Studio Code to write contracts in solidity?
3 Answers
For Visual Studio Code, there is an extension which provide syntax highlighting.

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+

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
- 1,405
- 11
- 12
-
Hey Juan... I did install the extension although its not looking colorful as yours – Kizito Apr 01 '16 at 02:56
-
Change your theme to Dark+, go to File -> Preferences -> Themes ->Dark+ – Juan Blanco Apr 01 '16 at 06:57
-
Still no difference. My file is saves with the .sol extension as well but nothing is happening – Kizito Apr 01 '16 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 :) ) – Juan Blanco Apr 01 '16 at 14:44
-
Yes I am using Visual Studio Code Version 0.10.11. Check it out here -> [url=http://postimg.org/image/w0d18qr0j/] – Kizito Apr 01 '16 at 15:40
-
ah great, if you press F1 again and type ext, you will have an option to see installed extensions. It might not installed correctly. – Juan Blanco Apr 01 '16 at 15:43
-
Let us continue this discussion in chat. – Juan Blanco Apr 01 '16 at 15:45
-
@JuanBlanco With the latest VS Code, it cannot find the Solidity extension, any ideas? – Aram Jan 11 '17 at 22:40
-
@JuanBlanco Nevermind, Looks like I had an ancient VS Code – Aram Jan 12 '17 at 00:33
-
@JuanBlanco thanks for the extention but on windows and VS Code I am currently experiencing an issue command "solidity.compile.active" not found, I havent installed any command line tools, should I install any command line extensions? – skv Jan 01 '18 at 05:33
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
- 96
- 2
-
1Thanks Nikhil this will do for now, though I hoped to get a video tutorial – Kizito Mar 31 '16 at 18:43
You can find a tutorial for this on my msdn blog.
Also some quick videos on this as well:
- 32,913
- 47
- 156
- 395
- 29
- 1
-
3Typically 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
-
1Welcome 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