Contents

Visual Studio tips

Disable optimization

If you disassemble a program you write yourself, you may want at first to disable optimization and enable it later on and compare differences to better understand how the optimization modifies the assembly code.

To disable it (it should be enabled by default):

Project
└── <Project_name> Properties
    └── Configuration Properties
        └── C/C++
            └── Optimization
                └── Optimization = Disabled (/Od)
/images/tips/visual_studio/2024-03-24-144922.png
Access project properties
/images/tips/visual_studio/2024-03-24-145122.png
Disable optimization

Display inline hints

When working with Windows APIs, it can be very helpful to display function’s signature directly in visual studio.

You can configure it with:

Tools
└── Options
    └── Text Editor
        └── C/C++
            └── IntelliSense
                └── Display inline hints 
/images/tips/visual_studio/2024-03-09-134515.png
Access Options settings
/images/tips/visual_studio/2024-03-09-134530.png
Enable and display inline hints

Once enabled, it will look like it:

/images/tips/visual_studio/2024-03-24-150308.png
VirtualAlloc call with inline hints