[Geany-Users] [plugin] Define auto-format

Павел Рощин roshin at xxxxx
Sat Aug 24 21:12:28 UTC 2013


Hello!

Let me introduce you new plugin - define auto-format for C/C++ users.
This plugin automatically helps you to edit big multi-line defines just
you are typing. It provides two features:
- automatically align backslashes
- continue backslashes inside multi-line define when you press Enter

now instead

#define SUM(a, b, c) do {\
c = (a)+(b)\
} while(0)

you will get

#define SUM(a, b, c) do {                                      \
    c = (a)+(b)                                                \
} while(0)

Enjoy!

https://github.com/geany/geany-plugins/pull/111

-- 
Pavel


More information about the Users mailing list