https://bugs.kde.org/show_bug.cgi?id=317299
--- Comment #12 from Igor Kushnir <igor...@gmail.com> --- (In reply to Piotr Mierzwinski from comment #11) > Yes. I agree, but there are users, like me, who don't use set formatting > style, at all. I never called 'reformat code' function in KDevelop. Normally > I format code manually, because no one existing (by default in KDevelop) > formatting style doesn't match my expectation. So my format of code isn't > like KDevelop thinks like it is and in result breaks it. That would mean > this isn't a bug and every user should use 'reformat code' before calling > "Rename assistant". > > Maybe is possible to define own formatting. I mean define where should be > space, and where not, or indention in new line, etc. Of course it is possible. There are actually several ways to do this: 1. You can create a new style based on an existing Artistic Style (the *New* button on the Source Formatter tab of KDevelop Settings), then edit the style in a dedicated dialog (the *Edit* button on the same tab). 2. You can switch to a Custom Script Formatter, choose *uncrustify* or *clang-format* and configure these tools via their specific configuration files and command line arguments. 3. There is even a dedicated tool distributed with KDevelop: kdev_format_source. Read the tool's description by selecting *KDevelop: kdev_format_source* on the Source Formatter tab. You can use KDevelop's own formatting configuration as a starting point for your preferred style: https://commits.kde.org/kdevelop/kdevelop?path=format_sources and https://commits.kde.org/kdevelop/kdevelop?path=format.config.uncrustify. If none of these tools supports your formatting preferences, you can disable formatting altogether by selecting the *KDevelop: kdev_format_source* formatter for the programming languages you use and not providing the kdev_format_source file. In this case no reformatting will be applied to your code. -- You are receiving this mail because: You are watching all bug changes.