| Summary: | Context menu option 'Format files' is dangerous | ||
|---|---|---|---|
| Product: | [Applications] kdevelop | Reporter: | Romek <roman.konieczny> |
| Component: | file tree | Assignee: | kdevelop-bugs-null |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | wishlist | ||
| Priority: | NOR | ||
| Version First Reported In: | git master | ||
| Target Milestone: | --- | ||
| Platform: | Ubuntu | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Romek
2012-04-25 11:58:57 UTC
undo won't be implemented, use a VCS for that. a little dialog to warn the user about the action should be implemented though, agreed. Thank you for agreeing on warn dialog.
Unfortunately VCS cannot be always used easily to revert changes. In my case, formatting options caused some code to be eg. surrounded by {}. Such change cannot be easily filtered out by telling diff to ignore whitespace changes. So, I would opt for making an option for creating a diff (patch) before executing formatting, and then have an option to revert changes and apply the diff.
However I understand this is quite complicated, and there are more important things to be changed prior to this.
*** This bug has been marked as a duplicate of bug 343895 *** |