This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 229234 - Allow paste Java String without escaping new lines
Summary: Allow paste Java String without escaping new lines
Status: REOPENED
Alias: None
Product: editor
Classification: Unclassified
Component: Actions/Menu/Toolbar (show other bugs)
Version: 8.2
Hardware: PC Linux
: P4 normal with 3 votes (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-30 20:52 UTC by mclaborn
Modified: 2016-07-21 19:36 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mclaborn 2013-04-30 20:52:56 UTC
Product Version = NetBeans IDE 7.3 (Build 201302132200)
Operating System = Linux version 3.2.0-40-generic running on amd64
Java; VM; Vendor = 1.7.0_10
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.6-b04

I frequently paste SQL queries from an external source into a Java string constant (between pairs of double quotes).  The paste function includes the new lines in the original text as escaped Java new line characters (\n).  While this is technically correct, it makes the resulting String constant in Java messier than it needs to be, since the new lines in the pasted text are also represented by new lines in the Java source code.

I would like to see an option that can be set to ignore the new lines in pasted Strings, or a different command for that kind of paste, so that I can use a different shortcut key for that type of paste.
Comment 1 mclaborn 2013-04-30 20:55:08 UTC
Or perhaps instead of ignoring the newline, an option to change it to a space.
Comment 2 Martin Balin 2016-07-07 07:29:46 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss