Code Rush Shortcuts and Templates
Code Rush Shortcuts and Templates
Code Rush Shortcuts and Templates
Clipboard
Navigation
Feature
Shortcut
Context
Feature
Shortcut
Context
Smart Copy
Ctrl+C or Ctrl+Insert
Highlight References
Ctrl+Alt+U
Caret on identifier
Smart Cut
Shift+F12
Caret on identifier
Tab
Intelligent Paste
Tab
Replace Word
Caret on token
Ctrl+Shift+Q
Ctrl+Alt+F
Ctrl+Alt+.
Available anywhere
Context
Drop Marker
Alt+Home
Escape
Ctrl+Alt+V or Ctrl+B
Defining Selections
Feature
Shortcut
Selection Increase
Num+ or Ctrl+W
Collect Marker
Selection Decrease
Num- or Ctrl+Shift+W
Shift+Escape
Alt+Shift+Left
Swap Markers
Alt+Shift+Home
Alt+Shift+Right
Toggle Bookmark
Ctrl+Alt+{Number}
Go to Bookmark
Alt+{Number}
Go to Previous Bookmark
Ctrl+Alt+Left
Wrapping Selections
Feature
Shortcut
Context
Go to Next Bookmark
Ctrl+Alt+Right
Comment/Uncomment
/ or ' (VB)
Multi-line selection
Toggle Region
Space
Multi-line selection
Alt+Left
Alt+Right
Block begin/end
b or Shift+[
try/catch
Multi-line selection
try/finally
Multi-line selection
try/catch/finally
Multi-line selection
lock/SyncLock
Multi-line selection
using
Multi-line selection
Feature
Shortcut
Context
Multi-line selection
Options
Ctrl+Shift+O
Available anywhere
Ctrl+Shift+F12
Ctrl+Shift+Alt+H
Convert to string
Shift+'
Miscellaneous
WaitCursor
Multi-line selection
Parens
Shift+0 or Shift+9
Any selection
Not Parens
Shift+1
Any selection
region
Ctrl+3
Multi-line selection
Invert Selection
Ctrl+Shift+I
Multi-line selection
Code Generation
Feature
Shortcut
Context
Refactor/Declare
Ctrl+`
Expand Template
Space
Auto-create region
Ctrl+3
Cycle Scope Up
Alt+Up
Alt+Down
Duplicate Line
Shift+Enter
Declare variable
based on type (C#)
Ctrl+A
CodeRush Templates
Enter the templates listed here in the editor and expand with
the spacebar. The CodeRush User Guide shows how to create
your own templates.
Flow
If/else
Element
Template
Element
Creating Types
For loops
fr
If statement if
For Each
fe
If not
ifn
Element
Template
While loop
Else
Class
Do While
dw
Else If
lf
Interface
Switch
sw
Struct
Select
se
Try
Enum
tne
Element
Template
Abstract Class
Using statement
try/catch
tc
try/finally
tf
try/catch/finally
tcf
Delegate
Exception
Test Fixture
Test Method
Create Constructor
cc
To create members
and variables, use
type mnemonics
(see next page).
Block begin/end
Template
Shortcut*
V or v
N or n
O or o
M or m
P or p
R or r
W or w
A or a
t
q
c
c
*Uppercase
Shortcut
FileWebRequest
FileWebResponse
HttpWebRequest
HttpWebResponse
WebRequest
WebResponse
fwq
fwr
hwq
hwr
wq
wr
System.Threading
Type
Shortcut
ManualResetEvent
Monitor
Thread
ThreadStart
mre
mo
t
ts
Other types
Type
Shortcut
{Active Type}
{Paste}
GregorianCalendar
Regex
StringBuilder
/
\
gc
rx
sb
System.Collections
Type
Shortcut
ArrayList
Hashtable
NameValueCollection
Queue
Stack
StringCollection
a
h
nvc
q
k
sc
Type Shortcuts
System
Type
Shortcut
System.Drawing
Type
Shortcut
System.Windows
Type
Shortcut
Boolean
Byte
Char
DateTime
Decimal
Double
EventArgs
Exception
Guid
Int16
Int32
Int64
IntPtr
Object
Single
String
Type
UInt32
Bitmap
Brush
Color
Font
Graphics
Pen
Point
PointF
Rectangle
RectangleF
Size
SizeF
DependencyObject
DependencyProperty
Point
Rect
Size
Thickness
Vector
b
by
c
d8
de
d
ea
x
g
sh
i
l
ip
o
si
s
ty
u
bt
br
cl
fn
gx
pn
p
pf
r
rf
z
zf
System.Windows.Media
Type
Shortcut
System.IO
Type
Shortcut
StreamReader sr
StreamWriter
sw
System.Data
Type
Shortcut
System.Data.SqlClient
Type
Shortcut
DataRow
DataRowView
DataSet
DataTable
DataView
SqlClientPermission
SqlCommand
SqlCommandBuilder
SqlConnection
SqlDataAdapter
SqlDataReader
SqlParameter
SqlParameterCollection
SqlTransaction
dr
drv
ds
dt
dv
XPO
Type
Shortcut
AggregateOperand
BetweenOperator
BinaryOperator
FunctionOperator
GroupOperator
InOperator
UnitOfWork
Session
UnaryOperator
XPCollection
xao
xbwo
xbo
xfo
xgo
xio
xu
xss
xuo
xcl
qcp
qc
qcb
qn
qda
qdr
qp
qpc
qt
Microsoft.SharePoint
Type
Shortcut
SPContentType
SPContext.Current.Site
SPContext.Current.Web
SPField
SPList
SPListItem
SPSite
SPWeb
spct
spcs
spcw
spf
spl
spli
sps
spw
Generic Collections
one parameter
Type
Shortcut
Generic Collections
two parameters
Type
Shortcut
BindingList
Collection
Comparer
EqualityComparer
ICollection
IEnumerable
LinkedList
LinkedListNode
List
Queue
ReadOnlyCollection
Stack
XPCollection
Dictionary
KeyValuePair
SortedDictionary
SortedList
bl
c
cmp
ec
ic
ie
ll
lln
l
q
roc
k
xcl
do
dp
p
r
z
th
vi
d
kvp
sd
sl
Brush
Color
FontFamily
GeometryDrawing
GeometryGroup
GradientBrush
HitTestResult
LinearGradientBrush
Matrix
MatrixTransform
MediaPlayer
Pen
RotateTransform
ScaleTransform
SkewTransform
TransformGroup
TranslateTransform
Visual
VisualBrush
br
cl
ff
gd
gg
gb
htr
lgb
mx
mt
mp
pn
rt
sct
skt
tg
tt
vi
vb
System.Xml
Type
Shortcut
XmlAttribute
XmlComment
XmlDocument
XmlDocumentType
XmlElement
XmlException
XPathDocument
XmlNode
XmlSerializer
XmlText
XmlTextReader
XmlTextWriter
XmlWriter
xa
xc
xd
xdt
xe
xx
xpd
xn
xs
xt
xtr
xtw
xw
Tips
Shift+Space suppresses
template expansion
t, f, & n for true, false & null.
r, rt, rf, and rn return values.
Inside methods, templates
like fe, fri, c{TypeShortcut}, st,
sf, and sn work intelligently
with identifiers copied to the
clipboard.
Use {TypeShortcut}.e to get a
.Empty reference for a struct
(like s.e or p.e).