'Is there a way to change the Visual Studio file extensions for modules?
I would like to prefer to name module files .cpp since I am on my way to start a new project and I try to use modules only.
For this reason I think that my implementation should go into .cpp files rather then .ixx files.
I develop the project in C++20.
Is there a way to change the modules file extension to something else other than .ixx in Visual Studio 2022?
By the way: what is the reason for Visual Studio to only allow the .ixx extension for modules? Why not let the developer pick their preferred extension?
Solution 1:[1]
Default logic in Visual Studio is tuned to treat files based on extension. So .ixx is assumed to be a module interface (i guess i in the extension stands for interface) and .cpp is assumed to be a file for translation unit. However this behavior can be altered from file properties:

Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | user7860670 |
