Auto-formatting broken in VS2017, wtf?
-
So just recently, my copy of VS2017 Community has started acting strange. The most noticeable issue is the auto-indenting of brackets.
Old behavior: When I typed
public class Identifier {}
and hit enter, it would nicely align the brackets:
public class Identifier { }
at the right level of indentation (however deep or shallow).
Now, what I'm seeing is
public class Identifier { }
with the end bracket at line position 0 (regardless of indentation) and the start bracket one indent level deeper. Any clues?
It also seems that Intellisense has gone zombie on me (marking spurious errors (as in claiming there's something in a blank line) and not giving the right suggestions). It's still giving something, just lobotomized.
Edit: This seems to only affect that solution. Other solutions are not affected.
-
@benjamin-hall have you already tried deleting the intellisense database file and/or the
.vs
hidden folder?
-
@lb_ said in Auto-formatting broken in VS2017, wtf?:
@benjamin-hall have you already tried deleting the intellisense database file and/or the
.vs
hidden folder?I'm not sure where that is...didn't know about it until just now when you posted.
-
@benjamin-hall It should be in the root directory of your project/solution. Just exit Visual Studio, delete it, and then reopen.
-
Hmm, I just may have fixed it--it seems that VS was opening the folder, not the solution. Opening the solution seems to have fixed things.
Why it thought opening the folder was the right thing to do...I'll never know.
-
@benjamin-hall said in Auto-formatting broken in VS2017, wtf?:
Why it thought opening the folder was the right thing to do...I'll never know.
I blame those ASP.NET Core hippies.
-
@benjamin-hall said in Auto-formatting broken in VS2017, wtf?:
Hmm, I just may have fixed it--it seems that VS was opening the folder, not the solution. Opening the solution seems to have fixed things.
Why it thought opening the folder was the right thing to do...I'll never know.
Groucho shoots an elephant... – 00:07
— Hellfrick
-
@masonwheeler Does this count as Marxist propaganda?
-
I am sorry, citizen, but this YouTube video is currently placed at Security Clearance VIOLET. Observing and comprehending any of the scenes contained therein without appropriate security clearance is considered treason. Please proceed directly to your nearest available Termination Booth. Thank you for your cooperation. Have a nice daycycle!