Search code examples
delphipluginskeyboard-shortcuts

Delphi CnPack - Shortcut for Code formatting


I have installed CnPack (https://www.cnpack.org) to get. At least, a little bit of the experience you get with VS Code. CnPack is a really great tool and I don't want to miss it, but it overwrites the default Shortcuts of Delphi RAD Studio. After Installation, I miss the Shortcut for automatic code formatting. Usually it is CTRL + D. I found that CnPack has also Code Formatting ability, but I could not find the manuals for it, and therefore I could not find the keyboard shortcuts for that. Any experience with that?


Solution

  • Under Menu CnPack -> Code formatter -> Options it is possible to set new Shortcodes.

    There you can also delete the existing one without setting a new one if you don't use it anyway.