apache / apache/netbeans

Copy multiline string (not text blocks)

Open
#6,449 0 comments 0 reactions 0 assignees View on GitHub
kind:feature needs:triage
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Description

It would be nice if I could copy the content of a multiline string (a String consisting of multiple code lines of concatenated strings, not a Java 15 Text Block) directly. I.e:

```java
String s = "This " +
"string spans " +
"multiple code lines.";
```

I would want a feature so I can copy "This string spans multiple code lines." directly, without removing manually the `"` and `+` characters.

### Use case/motivation

_No response_

### Related issues

_No response_

### Are you willing to submit a pull request?

No

Contributor guide

Open the contributing guide

Research direction

The issue names no implementation files or tests. Start by locating NetBeans' Java editor copy handling and string-literal parsing, then check existing editor copy tests; done means copying a concatenated multiline Java string produces its combined content without quotes or plus characters while preserving ordinary copy behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.