Sublime Forum

Run command for Emmet in Console for all opened files

#1

I would like to run Emmet on all opened files. I have read that it is possible to run a command in Sublime Text’s Console with arguments: run_command(string, <args>); for all opened files, as in [v.run_command('select_all') for v in window.views()].

How would the following have to be written in Sublime Text’s Console?

"command": "run_emmet_action", 
"args": {"action": "increment_number_by_1"}, 
"context": [{"key": "emmet_action_enabled.increment_number_by_1"}]
0 Likes

#2
[v.run_command('run_emmet_action', { 'action': 'increment_number_by_1' }) for v in window.views()]
0 Likes