/Community

A Support Community for SubMain Products
in Search
Welcome to SubMain Community Sign in | Join | Help

How To

  • How to submit CodeIt.Right Log file to SubMain support

    CodeIt.Right Log file contains detailed debug information that allows us to troubleshoot most every issue on you experience with the product.

    These are the steps to email the log file to us:

    1. Open Visual Studio

    2. In the menu bar, click CodeIt.Right, then click Help & Support, and then click Email Log File




    3. Attach file from the location in the email body - in the screenshot above is "C:\Users\sergeb\Documents\SubMain\CodeIt.Right for VS2008\CodeIt.Right.log"

    4. Click Send to email the attached file to us.

  • How to add rule to User Profile

    Some of the rules included with CodeIt.Right are not part of the built-in profile as are not part of the Microsoft Guidelines and yet they often come very handy especially when you choose to use a standard other than recommended by Microsoft.

    This post covers step-by-step how to add a rule to custom user profile. In this walk-through we will add rule "Replace identifier prefix" (ReplaceIdentifierPrefix) [Naming] and configure it to replace the old style "m_" variable prefix with the new .NET style "_" (underscore). This is very convenient when move existing old style project to the .NET naming conventions.

    1. Open Profile Editor
       
    2. Make sure you are not using built-in profile -> see How to create own Profile
    3. Click the Add Rule toolbar button


    4. Find and select the "Replace identifier prefix" in the list and click OK


    5. Enter name for the new rule (we will use "Replace "m_" with "_" is"), set PrefixToCheck parameter to "m_" and PrefixToReplace to "_", choose Targets (using only the targets that are applicable to the rule allows for better analysis performance) and click Save


    6. New rule "Replace "m_" with "_" is" is part of your profile now.

     

  • How to create own Profile

    When you try to edit the built-in Microsoft Guidelines profile in CodeIt.Right you will get a message saying that profile is not modifiable. If you want to customize CodeIt.Right profile, you need to create your own profile first. This can be done by cloning existing profile or creating your own from scratch.

    Cloning existing profile

    To clone existing profile you need

    1. Open Profile Editor


    2. Click the Save As toolbar button


    3. Enter name and (optional) description for your profile


    4. Newly created profile is opened in Profile Editor

    Creating new profile

    To create new profile from scratch you need

    1. Open Profile Editor


    2. Click the New toolbar button


    3. Enter name, (optional) description for your profile. Then choose Base Profile to copy rules from (select Blank if you want to start your profile from scratch)


    4. Newly created profile is opened in Profile Editor