justcode: set local method variables to start with underscore

Thread is closed for posting
2 posts, 1 answers
  1. Phil H.
    Phil H. avatar
    88 posts
    Member since:
    Nov 2008

    Posted 11 Jul 2016 Link to this post


    I love the ability to turn JustCode on and off.

    I would like to configure coding and variable styles.  My local method variables to start with underscore, so I can easily see that it is local.  I am getting a warning.  Can you direct me to configure my style.


  2. Answer
    Nikolay Valchev
    Nikolay Valchev avatar
    72 posts

    Posted 14 Jul 2016 Link to this post

    Hello Phil,

    All naming inconsistencies warnings are reported due to conflicts with JustCode's Naming Convention Settings. We've implemented this settings because we would like to help developers/teams enforce some naming conventions in their projects. If you don't need such a settings it is perfectly fine to disable it by marking 'Naming conventions inconsistency' (located at JustCode | Options | Code Analysis | Problems | C#) with the green tick. If you would like to stick to the naming conventions but use code style different from the default one, you are able to configure them from JustCode | Options | Code Style | C# | Naming Conventions. For instance, to enforce naming convention like the one you mentioned about the local variable, you should
    open the Naming Conventions settings page, find the rule for Variables and add _ as a prefix  to the current rule. For more information you could look at this blog post or at our documentation.

    Best Regards,
    Nikolay Valchev
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top