Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Snippet Default Language by folder #3009
Currently it is only possible to set a Snippet Default Language globally in the settings.
It would be nice to have the option to set a different default language on folder level so that different folders for different languages don't force me to manually change the language on every snippet if it doesn't match the global default language.
I made a UI mockup to visualize how it could look for the User:
Steps to reproduce
Idea for alternative implementation:
If the name of the location is a language on that list, how about setting that as the default snippet language for that folder?
I like the idea. languages could be sorted by frequency per folder. Also a way to disable language options, like in a config file for example. There are so many you aren't gonna need them all.
Otherwise I'd need a monitor twice as high to pick my language without scrolling.
Mh.. It would be better than nothing but would still not work so well in a few scenarios.. For example, I have a folder named WPF, but the language (markup) setting for that would be XML (or XAML). As you describe it this wouldnt really work in these cases unless you could map it somehow.