Search code examples
visual-studioidevisual-studio-2022development-environmentvisual-studio-extensions

Does Visual Studio have profiles similar to VScode's profiles


Are there any Visual Studio (2022) profiles/environments similar to Visual Studio Code? For example, if I wanted to use some extensions separately from others. I program in C++ and C# in Visual Studio, or are there any other extensions required to make environments/profiles possible?

All help is appreciated.


Solution

  • Does Visual Studio have profiles similar to VScode's profiles

    The answer is NO. The strictly same feature does not exist in Visual Studio for this.

    Please note that the composition of these two tools is completely different (I am not just referring to the profile function, most of the functions are different). Only in a few special cases do these two tools overlap, such as React App:

    ASP.NET Core app with React in Visual Studio

    In this situation, Visual Studio also needs to rely on the configuration of VSCode, such as launch.json (in fact, in this case, VS itself will also generate this configuration, which is how it is designed).

    But for the vast majority of cases, these two tools have no intersection.

    Generally, Visual Studio does not have built-in support for user profiles or environments like Visual Studio Code does. All extensions, settings, and configurations are applied globally across all instances of Visual Studio.

    There is an exception, but this exception has little practical significance, this is when you do VS extension development, if you run an extension (even if you did not write anything actual), a clean new one will be generated at this time VS instance. But you can't usually use this instance to work. Although this kind of thing exists, it has no practical significance in working.

    Start developing extensions in Visual Studio

    Again, VS does not have this kind of functionality that you have in VSCode. The two tools are completely different. You need to follow the official documentation of VS to understand how to use VS. In addition, for VS, there is no extension that can implement such a thing as profile.

    There is a workaround, but this workaround is not perfect. It can only solve part of the problem, and it is not the same as what you want:

    You can control the configuration of C# or C++ by importing and exporting settings.

    However, I suggest that you don't think about such things, because it is very troublesome to implement the same thing in VS now, and it cannot fully cover what you need.

    What you want makes sense, if you need functionality in this area, you can submit a feature request to the developer community:

    Visual Studio - Request a feature