visual-studiovisual-studio-2022

How to toggle VS2022 "Exclude From Build" with a shortkey or toolbar button?


I have to often toggle "Exclude From Build" option for different files in VS2022 and it takes too much time to get to project properties and toggle the option there.

Is there a way to assign this to short-key or at least toolbar button?


Solution

  • you can use extension "Exclude from Build", it provide 6 menu items in tools menu:

    exclude from build,

    exclude (all configurations)

    exclude (active configuration)

    and "include in build" and so on