This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

AStyle in custom tools menu

adding AStyle, or other external command line program, to the "custom tools menu" is easy, but I forget how whenever I have to switch to a new PC, so I thought I would post this. the trick is to look in the MDK help for "Key Sequence for Tool Parameters" for the key sequences for the file name arguments. put quotes around the file name if the path specified has spaces in it. also remember to save the file in the IDE editor first, as the command line progam runs against the file on disk, not the one in memory. there was an earlier thread about this, but it was closed.
e.g.:

in the "customize tools menu" box,

add a command name (astyle) int the Menu Context area, then add the ff or your own choice of commands and arguments.

command: C:\bin\AStyle\bin\AStyle.exe
initial folder:
arguments: --style=allman "!E"

after the command is set up, the command name you entered will show up in the Tools pull down menu.

Richard