Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
ReSharper Essentials

You're reading from   ReSharper Essentials Make your Microsoft Visual Studio work smarter with ReSharper.

Arrow left icon
Product type Paperback
Published in Feb 2014
Publisher Packt
ISBN-13 9781849698702
Length 124 pages
Edition Edition
Arrow right icon
Author (1):
Arrow left icon
Lukasz Gasior Lukasz Gasior
Author Profile Icon Lukasz Gasior
Lukasz Gasior
Arrow right icon
View More author details
Toc

Mnemonic Live Templates


The next plugin we would like to recommend is the Mnemonic Live Templates for C# and VB.NET.

It provides a set of incredibly useful live templates that generate code using structured abbreviations.

You can use c for creating classes, i for interfaces, m for methods, v for fields, and p for properties. By using a capital letter, you can create static objects.

You can also specify a return type with a second letter. For example, pi will create a property that returns int, ps will return string, pby will return byte, and so on.

By using the ~ sign, you can specify collections as return types. For example, p~s will create a property that returns a collection of strings.

Really awesome, isn't it?

Using these templates is very intuitive, and you can review a list of newly added templates in the Templates Explorer window by filtering the mnemonics category.

More information about this plugin can be found at https://resharper-plugins.jetbrains.com/packages/mnemonics/.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image