5.06 beta - C# expression auto-formatting does not respect "Convert tabs to spaces" setting
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
Cheers
Joe
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!