Closed gruvw closed 1 year ago
You can switch between the profiles and the visible views state is stored and restored accordingly.
Please check this guide for any help - https://code.visualstudio.com/docs/editor/profiles
Thank you, I had already checked the linked guide.
The purpose of hiding icons is to declutter the sidebar and only display relevant extensions for easy access. However, having to manually switch between profiles for each file can defeat this purpose.
Is there a way to automatically switch profiles based on the document language ?
It feels a bit intense for such an easy UI operation.
As I understand this, profiles are much more deep and more meaningful across different workspaces.
They were not introduced as a way to customize the UI behavior based on editing language.
Switching back and forth between two files of different languages can occur frequently (multiple times per minute), and I feel like this use case may not be adequately covered by the profiles feature.
Overall, it would be beneficial for the VSCode team to consider implementing a solution that allows for easy switching between files of different languages within polyglot projects while maintaining a clutter-free sidebar.
Reopening the original feature request because I think profiles is not the right approach for your usecase.
@sandy081 marked the "community approved" issue #124031 as duplicate, the use of the profiles feature should solve the use case described.
However, I don't see how the profiles feature is supposed to solve the issue ?
In #124031 I described the ability to hide/show "viewlet contributions" (or what I called activity bar icons) per language (not per workspace or per "profile", but based on the current edited language document).
I think there has been a confusion: the issue was not about disabling extensions, just hiding the following UI icons automatically based on the programming language currently in use.
Could someone show me how to use the profiles feature to solve the described use case ?
And if this is not solved by the profile feature, reopen #124031.
Thanks