TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Useful Visual Studio Shortcuts
Aman Kumar
Jan 19, 2016
3.4
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
This blog about Useful Visual Studio Shortcuts.
propfull =
Creates full property.
private
int
myVar;
public
int
MyProperty
{
get
{
return
myVar; }
set
{ myVar = value; }
}
Prop =
Creates half property.
public
int
MyProperty {
get
;
set
; }
Propdp =
Creates dependency property.
public
int
MyProperty
{
get
{
return
(
int
)GetValue(MyPropertyProperty); }
set
{ SetValue(MyPropertyProperty, value); }
}
// Using a DependencyProperty as the backing store for MyProperty. This enables animation, styling, binding, etc...
public
static
readonly
DependencyProperty MyPropertyProperty =
DependencyProperty.Register(
"MyProperty"
,
typeof
(
int
),
typeof
(ownerclass),
new
PropertyMetadata(0));
Ctrl + .(Dot) –
Resolves namespaces, generates method stub, renames every reference.
Shift + F12 =
Gives all references of item.
Ctrl + K, C =
Comments code
Ctrl +K, U =
Uncomments code.
Ctrl +K, K =
Creates bookmark.
Ctrl +K, P =
Navigate to previous bookmark.
Ctrl +K, N =
Navigate to next bookmark.
Ctrl +K, L =
Remove all bookmarks.
Ctrl +K, S =
Surround code with try catch etc.
Shift + F9 =
Quick watch.
F9 =
Insert or remove breakpoint.
Ctrl + shift + F9 =
Delete all breakpoints.
F7
- Go to code behind.
Shift + F7 =
Go to designer.
F5 =
Start debugging.
Shift + F5 =
stop debugging.
Useful Visual Studio Shortcuts
Next Recommended Reading
Shortcuts For Debugging In Visual Studio