We have some coding standards that state we must use double quotes instead of single quotes for string literals in JavaScript. As I am in the habit of always typing single quotes I was wondering if there was a way, using resharper 8, that I could either highlight all single quoted strings as an error using the custom highlighting (I did have a go at this but didn't get very far) or customising the code clean-up tool to auto replace single quotes with double quotes on code clean. If anyone can help with this, that would be great!

有帮助吗?

解决方案

I think no way currently. I've added an issue here http://youtrack.jetbrains.com/issue/RSRP-403138, feel free to vote for it.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top