开发者

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

开发者 https://www.devze.com 2023-01-02 16:37 出处:网络
I am not able to format/align the javascript code using ctrl+K+D in vs 2008. Am i missing some setting?

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

精彩评论

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

关注公众号