sublime-profiles icon indicating copy to clipboard operation
sublime-profiles copied to clipboard

How do I use a profile to open files with a specific extension?

Open oldcastlehq opened this issue 1 year ago • 3 comments

Hi,

great plugin! I'm wondering how I can link an extension to a profile. So, every time I open a file with that extension, it will open the right profile. For example, I want all the *.md files to open with my "Writing" profile. Is that possible?

Cheers

oldcastlehq avatar Oct 16 '22 18:10 oldcastlehq

You don’t need an extensions for that. Open file you need, then go Sublime Text -> Preferences -> Settings — Syntax Specific, and edit settings. It will be applied to all the files of the same syntax.

tonsky avatar Oct 17 '22 17:10 tonsky

Thank you, however I'm not sure whether I was clear.

I want markdown files to utilize the "Writing" profile when I open them. The "Default" profile should be used for everything else. I don't see how modifying settings in Sublime Text->Preferences->Settings—Syntax Specific will help.

oldcastlehq avatar Oct 17 '22 18:10 oldcastlehq

Well, you put there the same settings you put to profile. Would that work for you?

tonsky avatar Oct 17 '22 19:10 tonsky