5.06 beta - C# expression auto-formatting does not respect "Convert tabs to spaces" setting
Options
repro:
- turn on "Convert tabs to spaces" in edit -> preferences -> advanced
- create a C# expression query and type a query that includes indentation (4 spaces)
example:
- move cursor around to show the indentation is via 4 spaces
- on the indented line, hit control-x to cut the line then control-v to paste it
- move cursor around to see the indentation is now a tab character
- turn on "Convert tabs to spaces" in edit -> preferences -> advanced
- create a C# expression query and type a query that includes indentation (4 spaces)
example:
from i in new[] { 1, 2, 3 } select new { i }
- move cursor around to show the indentation is via 4 spaces
- on the indented line, hit control-x to cut the line then control-v to paste it
- move cursor around to see the indentation is now a tab character
Comments
-
I can't reproduce this, but have found a possible cause. Check 5.0.7 and let me know if it's still a problem.
Cheers
Joe -
5.07 fixed it! Thank you so much, Joe! You rock!!
-
Not to dig up an old thread, but I did notice this happened to me. I believe the reason @jamesmanning experienced this was because LinqPad wasn't restarted after modifying the
Edit>Preferences>Advanced
settings. Just a guess, but that's at least what just happened to me after a fresh install!