Core_F
Core_F

Reputation: 3442

How do I set a default prefix in ReSharper?

A pretty simple question, but I couldn't find an example for it: How do I set a default prefix, as a naming rule (so that I get it underlined, if it's named differently), for specific types in ReSharper? Like "txt" for all TextBoxs, "lbl" for all Labels and so on.

I found the C# Naming Style rules, but I couldn't figure out, how to add specific types to it. Could someone please give me a little example?

Upvotes: 2

Views: 230

Answers (1)

AakashM
AakashM

Reputation: 63340

I don't believe it's possible in currently (in R# 6.1) to set naming rules based on an object's type, which is what I think you want. In general, with .NET Microsoft has has turned away from Hungarian Notation, which is what txtName and so on are examples of.

Upvotes: 2

Related Questions