Sunteți pe pagina 1din 2

CodeRush Shortcuts

Clipboard

Navigation

Feature

Shortcut

Context

Feature

Shortcut

Context

Smart Copy

Ctrl+C or Ctrl+Insert

No selection, caret on token

Highlight References

Ctrl+Alt+U

Caret on identifier

Smart Cut

Ctrl+X or Shift+Delete No selection, caret on token

Show All References

Shift+F12

Caret on identifier

Ctrl+V or Shift+Insert Editor has focus

Tab to Next Reference

Tab

Caret inside identifier

Intelligent Paste

Clipboard History Ctrl+Shift+Insert

Editor has focus

Tab to Next XML Doc Field

Tab

Caret inside doc comment field

Replace Word

Caret on token

Quick Nav (Go to Symbol)


Quick File Nav

Ctrl+Shift+Q
Ctrl+Alt+F

Editor has focus


Available anywhere

Browse Recent Files

Ctrl+Alt+.

Available anywhere

Context

Drop Marker

Alt+Home

Editor has focus

Escape

Editor has focus, marker dropped

Ctrl+Alt+V or Ctrl+B

Defining Selections
Feature

Shortcut

Selection Increase

Num+ or Ctrl+W

Editor has focus

Collect Marker

Selection Decrease

Num- or Ctrl+Shift+W

Editor has focus

Collect Marker and Paste

Shift+Escape

Editor has focus, marker dropped

Select CamelCase Left

Alt+Shift+Left

Editor has focus

Swap Markers

Alt+Shift+Home

Editor has focus, marker dropped

Select CamelCase Right

Alt+Shift+Right

Editor has focus

Toggle Bookmark

Ctrl+Alt+{Number}

Editor has focus

Go to Bookmark

Alt+{Number}

Editor has focus

Go to Previous Bookmark

Ctrl+Alt+Left

Editor has focus

Wrapping Selections
Feature

Shortcut

Context

Go to Next Bookmark

Ctrl+Alt+Right

Editor has focus

Comment/Uncomment

/ or ' (VB)

Multi-line selection

Toggle Region

Space

Caret on Region keyword

Multi-line selection

Camel Case Nav Left

Alt+Left

Caret on CamelCase token

Camel Case Nav Right

Alt+Right

Caret on CamelCase token

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

Debugging, caret on member reference

Ctrl+Shift+Alt+H

Editor has focus

Convert to string

Shift+'

Miscellaneous

WaitCursor

Multi-line selection

Step Into Member

Parens

Shift+0 or Shift+9

Any selection

Toggle Structural Highlighting

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+`

Editor has focus

Expand Template

Space

Caret after template

Auto-create region

Ctrl+3

Caret inside a member

Cycle Scope Up

Alt+Up

Caret inside a member

Cycle Scope Down

Alt+Down

Caret inside a member

Duplicate Line

Shift+Enter

Editor has focus

Declare variable
based on type (C#)

Ctrl+A

Caret at right of type

Want to change a shortcut?


Its easy. From the DevExpress menu, select Options, then
navigate to the IDE\Shortcuts page.

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

Throw new exception

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

Dock the CodeRush training window


to see more templates and shortcuts!
Copyright 2003-2013, DevExpress, Inc.

Members and Variables


Element

Shortcut*

Variable (parameter, local, field)


New Instance
Read-only Fields
Methods
Properties
Read-only
Write-only
Auto-implemented
Type Reference
Constants
Typecast (in code blocks)
Class

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

letters expand to static members.

Follow the templates above with a Type shortcut.


For example, on an empty line inside a class or
method, nb followed by space bar creates a
new initialized Boolean instance.
m by itself creates a method with no return value.
System.Net
Type

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

Are your types missing?


Its easy to create your own
type mnemonic. Just rightclick a type reference in the
code, and choose Use Type
in Templates

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

Follow with a . and then the


shortcut for the type of the
parameter. For example, nl.i
creates a new List of integers.

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

Follow these shortcuts


with a . and then the
shortcuts for the types of
the parameters separated
by a comma. For example,
nd.s,i creates a new
Dictionary keyed by strings
and holding integers.

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).

Copyright 2003-2013, DevExpress, Inc.

S-ar putea să vă placă și