linuxdan
linuxdan

Reputation: 4864

How to test changes to atom language grammars.

I'm looking to modify a language grammar in atom. However I'm not sure how to reload the grammar in order to test my changes. Do I need to quit and restart each time?

Upvotes: 7

Views: 796

Answers (1)

idleberg
idleberg

Reputation: 12882

The grammar-live-reload was made for that purpose, so it's probably the most convenient way.

Reload automatically editors when grammars files (.cson) changes [...] Only editors that are affected by the selected language are reload[ed].

Otherwise, you can open the command-palette and run Window: Reload (this will also show its shortcut). You can do the same in from the developer tools' command-palette by running Reload Page or Hard Reload Page.

Upvotes: 1

Related Questions