Why is code formatting not making this type a var?

using (Database db = new Database())
{
...
}

In my code clean up settings I have

replace direction: can change explicit to 'var' and vice versa
'foreach' iterator declaration style: Use 'var' except for simple types
local declaration style: Use 'var' except for simple types

1 comment

Hello Chris,

Try switching the 'Local variable declaration style' option to 'Use var except
for built-in types'. Let me know if this helps. Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

using (Database db = new Database())
{
..
}
In my code clean up settings I have

replace direction: can change explicit to 'var' and vice versa
'foreach' iterator declaration style: Use 'var' except for simple
types local declaration style: Use 'var' except for simple types

---
Original message URL:
http://devnet.jetbrains.net/message/5312177#5312177



0

Please sign in to leave a comment.