Visual Studio Auto-Format Broken

允我心安 提交于 2019-12-01 02:09:18

问题


I'm running Visual Studio 2008 sp1 on Windows 7 Build 7100 32bit.

I've never had this problem before, even on different installs of Windows 7 RC.

when I finish a statement with a ';' or '}' or something, normally VS will auto format that line or block of code. It hasn't been for me.

I checked Tools->Options->Text Editor->C#->Formatting->General, and the 3 "Auto Format" check boxes are checked already. When I press the hot key to auto-format, it formats the source as expected.

Anyone have any idea why it's doing this?

What I have installed that might have something to do with this: VS2008 SP1 SQL Server 2008 sp1 Office 2007

Thanks for the help


回答1:


I think I found what I did wrong. I changed the tab settings from Smart to Block. Apparently, the smart tabs setting is what triggers the autocomplete when you close a block or toss in a ;



来源:https://stackoverflow.com/questions/1156692/visual-studio-auto-format-broken

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!