Josh Turnbull on 02 Nov 2022 11:05:07
When deleting a step, any adjacent comments are also deleted. I understand this is because comments are considered an attribute of a step, but there is absolutely no reason to delete comments along with steps. In the case where lines are commented out as a developer experiments, they can easily lose large amounts of code, so this should be considered a bug in need of fixing.
See https://community.powerbi.com/t5/Issues/Power-Query-deletes-comments/idc-p/2879821#M87474 for more info
- Comments (2)
RE: Power Query editor should not delete comments
This is a critical suggestion for documentation purposes. The GUI also should not remove white space choices from another editor (such as Advance Query). Obviously, the GUI doesn't care about readability, but I need it to remember what I was working on yesterday. Thank you.
RE: Power Query editor should not delete comments
It's annoying enough when the editor decides that your commented out code is in fact a comment on a step, and adds unrelated tooltips.Perhaps the solution is to use the standard set by code documentation generators:/* Normal comment *//** Documentation comment */This would let the developer choose to associate a comment with the next step, which would turn on behaviours such as the tooltip icon and removing it with the step.