Is there a way to issue a key command to properly format an entire file in VS2008 with CodeRush Express?
A:
I just use built-in Visual Studio formatting command: Ctrl+A, Alt+F8 :D
Igor Zevaka
2009-09-16 21:53:31
+7
A:
Use Ctrl+K+Ctrl+D to format document keystroke
Use Ctrl+K+Ctrl+F to format selection keystroke
It's also possible to set your own keystrokes by opening Options... dialog (select Tools->Options from the menu). In Options dialog select Environment->Keyboard form the tree and set your own shortcuts for Edit.FormatDocument.
Vadim
2009-09-16 21:53:33
didn't work for me
RCIX
2009-09-16 21:56:12
Or rather "Ctrl+K, D".
Pavel Minaev
2009-09-16 21:56:13
That is, press "Ctrl+K", release it, and then press "Ctrl+D".
Pavel Minaev
2009-09-16 21:57:02
Nope, didn't work... :(
RCIX
2009-09-16 21:58:53
@RCIX When you select Edit->Advanced from menu what keystrokes do you see for Format Document?
Vadim
2009-09-16 22:04:53
Stealing my answer, eh? :-P
phsr
2009-09-16 22:20:19
Ctrl+K, Ctrl+D but when i execute that it does nothing...
RCIX
2009-09-16 22:24:04
And on top of that when i use snippets (like pressing tab twice after typing if) i get all screwed up indenting, and osme CR refactorings get that too
RCIX
2009-09-16 22:28:55
This looks more like CodeRush problem to me.
Pavel Minaev
2009-09-17 01:17:36
Hmm...
RCIX
2009-09-17 16:27:30
It should be noted that Ctrl+K, D is a VS shortcut, and not a CodeRush command
isc_fausto
2010-03-03 05:41:12
+3
A:
[Ctrl]+[K],[Ctrl]+[D]
This question with answers has a lot of handy tips.
Tomas Lycken
2009-09-16 21:54:37
+1
A:
You could always go to Tools -> Options -> Keyboard and give the Edit.FormatDocument a new shortcut.
Update You can also see what the Shortcuts mapped to this command are this way.
phsr
2009-09-16 21:56:04