How to configure Arduino code "color coding" in Visual Studio

by Visual Micro 9. October 2011 09:41

Due to a VS bug 10.11+ versions require you to manually tell visual studio to color code your arduino code.

1. Open the Visual Studio Tools>Options

2. Navigate to Text Editor>File Extensions

3. Add the INO and PDE extensions setting the Editor to "Microsoft Visual C++" for each

4. Click OK and re-open any open sketch code files

This is what you should see once you have made the changes

Note: Users of versions earlier than 10.11 who encounter random color code failings should remove the extensions from the above list. Click OK and then re-add them as shown above

Tips & Bits

Debug and power tools coming soon!!

Visual Assist X (VAX) - How to configure Arduino sketches as VAX C++ files. Refactor, Snipets, enhanced syntax colors, examples, suggestions and much much more. Only downside is that it costs $100.

Connect two or more arduinos and spy on the serial communication using visual studio and "Serial Echo"

Apple Mac users might find this xcode site useful

Coming soon! Android and Processing for Visual Studio

How to prevent or remove Visual Studio pch folders

How to configure visual studio color coding for arduino source code

See more Examples

Multiple sketch projects and windows projects can co-exist in a single solution. Fully integrated. F5 Compile and upload (startup project). Build Project, Build Solution