Important: Please read the Qt Code of Conduct -

SWAP comments in Qt Creator

  • Hi,

    is there a way to swap comments in Qt Creator?

    whenever i want to write a variable i have the original line:
    variable = function1(x);
    For testing, sometimes i want to set this Variable to an integer, and to make it easy i always type
    variable =0; // function1(x);
    is there a easy way/shortcut to swap these two comments?


Log in to reply