Sublime Forum

Remember syntax selection for file w/o extension?

#1

Is there a way for sublime 3 to either remember syntax style choice for files that doesn’t have any extension? I know there is a default option but that doesn’t cut it.

I guess a way this can work is to use a hidden/.dot in the dictionary to remember the choice of file type or have ST ask for filetype each time a generic file without extension is open (but I’d image that a little bit annoying, but as least it can be an option?)

0 Likes

#2

I don’t know of such a plugin to remember individual files’ syntax choices, but I suggest adding this to your key bindings:

  { "keys": ["ctrl+alt+s"], "command": "show_overlay",
    "args": {"overlay": "command_palette", "text": "Set Syntax: "} },
2 Likes