josh_turnbull's avatar
josh_turnbull
New Member
3 years ago
Status:
New

Power Query editor should not delete comments

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

3 Comments

  • Anonymous's avatar
    Anonymous
    Not applicable

    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.

  • 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.

Recent ideas