Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8443129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T09:03:07+00:00 2026-06-10T09:03:07+00:00

According to the General Naming Conventions the usage of CLR type names (e.g. String

  • 0

According to the General Naming Conventions the usage of CLR type names (e.g. String, Int16) should be preferred over the usage of language specific type names (string, short). I usually follow this advice. Resharper however seems to use the language specific type names when generating code (refactorings like extract method, generating foreach loops, etc.) which is very annoying.

How can I force Resharper to use the CLR type names instead?

Update
As many are wondering why someone would enforce a style where Int32 instead of int or String instead of string is used, the intention was better syntax highlighting: int is rendered as a keyword, Int32 is rendered as a type. As modifying the highlighting implementation seems overkill, enforcing CLR type simply does the job. That one of the reasons why this is part of our style guide.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T09:03:09+00:00Added an answer on June 10, 2026 at 9:03 am

    Open R# Options, go to C# Code Style. Or in more detail:

    RESHARPER->Options

    Code Editing->C#->Syntax Style

    Build-in types

    • In locals, members and parameters, prefer – CLR type name
    • Members to qualify – CLR type name

    Aside: You probably want to safe it Team Shared only as most public projects prefer keywords instead (and you don’t want to accidentally annoy OSS contributors by suggesting a patch with that style).

    older versions

    Code Editing->C#->Code Style

    Build-in type naming->When referencing build-in type, prefer using choose CLR type name

    This feature requires R#9.1 or higher.

    If you are bound to even older versions of ReSharper

    There was an Extension for R#4.5-5.1 with exactly that purpose in mind. It’s called Neovolve. Unfortunately this extension wasn’t ported to any later R# versions.

    VS 2015

    Also for Visual Studio 2015 you may want to disable to prefer the intrinsic predefined types (which causes the symbols to be grayed out in the text editor) under Tools->Options Text Editor->C#->Code Style->Prefer intrinsic predefined type keyword*

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

According to this MSDN article , you should not catch general exceptions. I'm sure
According to the .NET Framework General Reference: Error Raising and Handling Guidelines exceptions should
According to the MySQL documentation: As a general rule, you should never assign a
According to docs at http://code.google.com/p/minify/wiki/UriRewriting $min_serveOptions['rewriteCssUris'] = false; I should be able to add
According to Microsoft event naming guidelines , the sender parameter in a C# event
In general use, should I bet on memory efficiency or processor efficiency? In the
My previous question pertained to the general string search algorithm. I am researching the
I have a general executable that hosts a single plugin which is selected according
I have a general question: What should be done when an object's behavior should
According to msdn the general standart for datetime is select convert(datetime,'19781222',112) //YYYYMMDD So if

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.