Format Document not working in Visual Studio

1,976 views
Skip to first unread message

Walt Ritscher

unread,
Apr 8, 2009, 2:54:31 AM4/8/09
to wpf-di...@googlegroups.com

 I’m working on some WPF samples and I need them in both VB and C#.  I know that most of you on this list don’t work with Visual Basic but I’ve run into an issue that I can’t find a solution for.

 

In the VB editor the Pretty Listing (auto format) has stopped working.  Also the Format-Document (Ctrl-K,Ctrl-D) no longer works in VB windows.  Format document works in my XAML and C# windows so I’m stumped.

 

Visual Studio 2008 SP1.

 

 

Laurent Bugnion, GalaSoft [MVP, MCP]

unread,
Apr 8, 2009, 3:18:07 AM4/8/09
to wpf-di...@googlegroups.com

It is just VS2008 revolting against VB. I saw that happen before, IDE stop working, the sky gets dark and frogs rain from the sky. Nothing a good reinstall won’t fix ;)

 

Just kidding. I have no idea why it doesn’t work anymore. Sorry Walt ;)

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.0.238 / Virus Database: 270.11.44/2044 - Release Date: 04/06/09 18:59:00

Mike Brown

unread,
Apr 8, 2009, 9:37:42 AM4/8/09
to wpf-di...@googlegroups.com
Sorry can't help...VB gets unchecked when I install along with CrystalReports and SQL Express. I leave C++ in out of nostalgia but I haven't opened a C++ project in ages either.

Karl Shifflett

unread,
Apr 8, 2009, 9:44:32 AM4/8/09
to wpf-di...@googlegroups.com

Walt, never had these issues and I work in VB most of the time.  (maybe the C# hamster is revolting!)

 

Sorry you are having issue.

 

Keep in mind that keyboard settings differ across keyboard language selection.

 

For document format, I simply add the toolbar button for the command to my toolbar.

 

Cheers,

 

kdawg

Eric Burke

unread,
Apr 8, 2009, 10:30:25 AM4/8/09
to wpf-di...@googlegroups.com
Did you install a VS addin that might have messed with your keybindings (e.g., R#)?
 
Did you check the Edit > Advanced > Format Document to be sure the keybinding is still the same?


From: Walt Ritscher <writ...@wintellect.com>
To: wpf-di...@googlegroups.com
Sent: Wednesday, April 8, 2009 2:54:31 AM

Subject: [WPF Disciples] Format Document not working in Visual Studio

Walt Ritscher

unread,
Apr 8, 2009, 10:52:38 AM4/8/09
to wpf-di...@googlegroups.com

It’s not the key-bindings.  I’ve tried using the Edit > Advanced > Format Document menu directly  and still no formatting.  In another related area, normally VB auto formats a line of text when you move off the line.  That is the result of setting the Pretty Listing switch in Tools Options.  cid:image001.png@01C9B81E.87801E60

I have that option enabled but the reformatting is not working.   It appears that the formatting feature has somehow been switched off, but I don’t know anywhere else to re-enable it.

 

 

From: wpf-di...@googlegroups.com [mailto:wpf-di...@googlegroups.com] On Behalf Of Eric Burke


Sent: Wednesday, April 08, 2009 7:30 AM
To: wpf-di...@googlegroups.com

image001.png
Reply all
Reply to author
Forward
0 new messages