Skip to main content
Hello, is there a shortcut to comment several lines at once? and is there a
shortcut to duplicate a line of code?

Cordially,

LERICHE Michael.
Hello, is there a shortcut to comment several lines at once? and is there a
shortcut to duplicate a line of code?

Cordially,

LERICHE Michael.
Adding a block comments functionality to the Code Editor is planned for next year. For details see Uniface Roadmap May 2022.pdf that can be found on the page with the Uniface Roadmap.

I hope this helps.

------------------------------
Daniel Iseli
Principal Technical Support Engineer
Uniface Services
Rocket Software, Switzerland
------------------------------
Hello, is there a shortcut to comment several lines at once? and is there a
shortcut to duplicate a line of code?

Cordially,

LERICHE Michael.
Hi Michael,

Large blocks / chunks of code - the lazy mans approach to commenting out chuncks of code:
if (2=1)
<x lines of code later>
endif

For the latter question:
<home><shift end><ctrl+c><ctrl+v>
I have seen some editors do it in 1 keystroke <ctrl+<something>>
If you really want to play with this - get into the keyboard translation table
and simply add the "one keystroke" you want and map it to the sequence I
outlined above....

Regards,
Knut

------------------------------
Knut Dybendahl
------------------------------
Hi Michael,

Large blocks / chunks of code - the lazy mans approach to commenting out chuncks of code:
if (2=1)
<x lines of code later>
endif

For the latter question:
<home><shift end><ctrl+c><ctrl+v>
I have seen some editors do it in 1 keystroke <ctrl+<something>>
If you really want to play with this - get into the keyboard translation table
and simply add the "one keystroke" you want and map it to the sequence I
outlined above....

Regards,
Knut

------------------------------
Knut Dybendahl
------------------------------
Even better, use precompiler directives so the code isn't compiled, e.g.

#ifdefined UNCOMMENT
<x lines of code later>
#endif​​

------------------------------
David Akerman
------------------------------