You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class test {
private String function () {
String a = "555\n555";
a = "ggg";
return a;
}
}
Scenario A (Selection Paste): Use the mouse to select the \n characters (inside the double quotes), copy them, and attempt to paste them.
Scenario B (Line Copy/Paste): Place the cursor anywhere inside the double quotes (on the line String a = "\n";) without selecting any text. Use the VS Code shortcut Ctrl + C then Ctrl + V (intended to duplicate the entire line).
This issue only occurs after installing the Extension Pack for Java. Based on my testing, this extension is the direct culprit behind the nonsensical paste behavior.
Further testing revealed that the issue stemmed from the vscode-java-pack reference to a Red Hat plugin. The new issue link is: redhat-developer/vscode-java#4305
Activity
[-]Bug[/-][+]Bug: Broken Paste logic[/+]CookedMelon commentedon Jan 12, 2026
This issue only occurs after installing the
Extension Pack for Java. Based on my testing, this extension is the direct culprit behind the nonsensical paste behavior.CookedMelon commentedon Jan 13, 2026
Further testing revealed that the issue stemmed from the vscode-java-pack reference to a Red Hat plugin. The new issue link is: redhat-developer/vscode-java#4305