Pasting from PPT into IntelliJ editor

Answered

When I copy code from a powerpoint presentation and paste it into an IntelliJ IDEA Ultimate editor window, the end-of-line is replaced by a VT [vertical tab] glyph:

I then have to manually fix it. Is there a way to prevent this? I am using Windows 11.

Pasting as plain text doesn't help.

 

 

0
6 comments
Hi,

Does it help if you disable the `File | Settings | Editor | General | Rich-Text Copy | Copy (Ctrl+C) as rich text` option?
0

Same problem here, from PowerPoint of Office 365 to IntelliJ 2025.2.4 on Windows 11.

No, disabling rich copy does not help (because it seems to concern copying from IntelliJ, not to IntellijJ).

0
Hi,

It seems PowerPoint of Office 365 includes these symbols for Rich Text. (`VT` character means a vertical tab).
Does help if you use the IDE main menu `Edit | Paste | Paste as Plain Text` to paste the text for this case. (you can see a related shortcut in this menu if you want to use the shortcut instead).

If it helps, you could assign `Ctrl+C` shortcut to `Paste as Plain Text` actions in `Settings | Keymap`.
0

Hello,

Thank you for the suggestion, but pasting as plain text does not change anything.

0
Thanks for the info. I just downloaded Office 365 and tested this issue — I can reproduce it.
However, if I paste the same content into Notepad or any other IDE/editor, the same issue occurs.

It seems that this is a PowerPoint issue, as it doesn’t handle this case well.
I checked PowerPoint’s settings, but there doesn’t seem to be any option to configure this behavior.

As a workaround, you may paste into the IDE, use `Edit | Find | Replace`, copy a vt symbol from the editor into Search input field, enable the "Regex" option, enter the `\n` into Replace input field to replace these into new lines.
1

Noted. Thank you for the feedback and the workaround.

0

Please sign in to leave a comment.