Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a decent Effect file editor plugin for Visual Studio? I'm getting slightly frustrated with constantly copying and pasting from FX Composer.

share|improve this question
up vote 4 down vote accepted

NShader provides syntax highlighting for HLSL, GLSL and CG.

They also plan to extend it with the following:

  • Add syntax parsing and checking (handling braces, compilation errors... etc.). This requires the definition of parser rules under MPLex and integration in the language service.
  • Add compilation checking (using fxc...etc.).
  • Add basic render preview window

Though, judging by the check-in history, it doesn't look like those items will come any time soon.

share|improve this answer

The easiest way to get syntax highlighting/editing assistance is to:

  1. Open Up RegEdit.exe

  2. Goto "HKEY_CURRENT_USER/Software/Microsoft/VisualStudio/10.0_Config/Languages/File Extensions/"

  3. Open up the key ".c", select "(default)" and then right click>Modify then copy the value.

  4. Then make keys for each file extension (include the period) like ".hlsl", ".fx", ".vsh", or ".psh" then select "(default)" and then right click>Modify then paste the value from ".c" and then you will have C/C++ syntax highlighting.

This is what I use, and will keep using until Visual Studio 2011 Comes Out.

share|improve this answer

Not in the current version of VS. But VS 2011 will have, see

But I guess that doesn't really help you now :-(

share|improve this answer

Haven't tried it myself but the GPU based development team at work started using it and rave about it.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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