开发者

not able to format the javascript code using ctrl+k+d in vs 2008

I am not able to format/align the javascript code using ctrl+K+D in vs 2008. Am i missing some setting?

PLease let me know what should i d开发者_运维问答o inorder to make this happen.


Make sure you have SP1 of VS 2008 installed. Formatting for javascript was added with it.

See this blog post.


the only thing i've come across that stops this from working is when there is an error somewhere in the javascript. seems like a silly answer, but its all i've got.


The menu option is Edit -> Advanced -> Format Document. On my system this is mapped to Ctrl+E, then D.

If that doesn't work, you should check your Errors window for problems with the Javascript code itself.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜