Contents

Visual Studio Tips for Dynamics 365 Finance Operations

Some configurations that you should make for Visual studio in newly deplopyed FinOps environments.

1. Show line number

  • Open Visual studio as Administrator right.
  • Click on the Dynamics 365 drop down menu on the toolbar and select Options.
  • Text editor -> X++

/2023-02-02-vs-tips-finops/show-line-number.png
Show line number

2. Best practice rules

  • Click on the Dynamics 365 drop down menu on the toolbar and select Options.
  • In Dynamics 365, select Best Practices and select each of the following:
    • Microsoft.Dynamics.AX.Framework.BestPracticeFramework.UIRules
    • Microsoft.Dynamics.AX.Framework.CodeStyleRules
    • Microsoft.Dynamics.AX.Framework.DataAccessRules
    • Microsoft.Dynamics.AX.Framework.DataEntityRules
    • Microsoft.Dynamics.AX.Framework.DataMethodRules
    • Microsoft.Dynamics.AX.Framework.DepreciatedElementsRules
    • Microsoft.Dynamics.AX.Framework.MaintainabilityRules
    • Microsoft.Dynamics.AX.Framework.StaticCodeValidationRules

3. Build

If you want to lower building time

  • Click on the Dynamics 365 drop down menu on the toolbar and select Options.
  • In Dynamics 365, select Build and select Build Modules in Parallel

/2023-02-02-vs-tips-finops/build.png
Build

More information on this feature

4. Projects

  • Click on the Dynamics 365 drop down menu on the toolbar and select Options.
  • In Dynamics 365, select Build and select
    • Organize projects by element type
    • Synchronize database on build for newly created project
    • Order labels in label file by their ID

/2023-02-02-vs-tips-finops/project.png
project

5. Customize toolbars

  • Right click on Toolbars, choose Customize

/2023-02-02-vs-tips-finops/toolbars-1.png
toolbars-1

  • Create a new toolbar named D365

/2023-02-02-vs-tips-finops/toolbars-2.png
toolbars-2

  • Switch to Commands tab, Choose D365 in Toolbar

/2023-02-02-vs-tips-finops/toolbars-3.png
toolbars-3

  • Choose Add Command -> Extensions -> Add commands that you want

/2023-02-02-vs-tips-finops/toolbars-4.png
toolbars-4

Here are my favorites

/2023-02-02-vs-tips-finops/toolbars-5.png
toolbars-5

Now you can access them directly from toolbars, it will save you some clicks.

/2023-02-02-vs-tips-finops/toolbars-6.png
toolbars-6