C# Corner
Tech
News
Videos
Forums
Trainings
Books
Events
More
Interviews
Jobs
Live
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Useful Visual Studio Shortcuts
WhatsApp
Aman Kumar
9y
3.6
k
0
0
25
Blog
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.
People also reading
Membership not found