kdevelop pasting C-style comments
Dave Close
dave at compata.com
Sun Feb 15 20:07:17 GMT 2026
"D. R. Evans" wrote:
>In kdevelop, if I copy the following text into the copy/paste buffer from a
>pre-existing file:
>
>/*! \brief Create a directory if it does not already exist
> \param dirname name of the directory to create
> \return Whether directory was created
>*/
>
>and then I paste it into a different file (or, actually, even the same file),
>instead of a byte-for-byte copy of what I just put into the buffer, what
>appears in the destination file is:
>
>/*! \brief Create a directory if it does not already exist
> * \param dirname name of the directory to create
> * \return Whether directory was created
> */
>
>There must be something in kdevelop settings somewhere to control this (it
>started with a recent upgrade to debian trixie from bookworm), but I can't
>find any documentation on the subject. I'm probably just looking in the wrong
>place. If it's not obvious: I want the pasted text to exactly match what I cop
>ied.
The "paste" function appears actually to be feeding your copied text to
the input (keyboard) mechanism, doing with each byte in turn exactly what
it would do if you had typed those bytes. So one clue might be to find
any option which controls what happens when you type. For example, any
auto-indent function. I don't know if there is such an option that would
help you, but that's where I'd look.
--
Dave Close, Compata, Irvine CA +1 714 434 7359
dave at compata.com dhclose at alumni.caltech.edu
"We consider too much the good luck of the early bird and
not enough the bad luck of the early worm." -- Franklin Roosevelt
More information about the kde
mailing list