How to run AStyle from inside Sublime?

132 Views Asked by At

I already tried using the SublimeAStyle Package, but it didn't work. When I pressed the keys, the command would not fire (I checked in the console). Now I am trying to write my own key-shortcut to run the program on my source code. I have this:

{ "keys": ["ctrl+alt+f"], "command": "exec", "args": { "cmd": ["C:\\Program Files\\AStyle\\bin\\astyle.exe", "${file_name}"]} }

but the ${file_name} is not expanding to pass the file name to the command. Is there anything I am doing wrong?

0

There are 0 best solutions below