A shortcut for setting file type?


#1

When in an untitled document, if you click on “Plain Text” in the status bar you will be able to choose its file type. Is there a way to do it without using a mouse, like you can in Sublime Text with Cmd+Shift+P?


#2

From the command palette (Cmd+Shift+P): “Grammar Selector: Show” then select language.


#3

That’s exactly what I wanted to do.Thanks!


#4

Ctrl+Shift+L Opens the dialog directly!


#5

The exact shortcut to bring up the Show Grammar panel is (on a mac) is CTRL + SHIFT + L


#6

With Sublime, you can use the command pallet (just like Atom) - and type “set ht…” (or whatever using html as an example) fuzzy search and hit return and it’s set.

For Atom:

ctrl+shift+l feels ok - i guess you can think of Language

but…

cmd+shift+p -> gr -> enter -> ht -> enter

Feels a lot closer to the Sublime flow.


#7

If you want something more similar to the Sublime Text flow, you can use my set-syntax package.


#8

For MacOS ⌃ + ⇧ + L i.e. control+shift+L