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 257667 - Create way to add \ at end of string
Summary: Create way to add \ at end of string
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: Dev
Hardware: PC Windows 10 x64
: P2 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-21 19:20 UTC by antoniocs
Modified: 2017-05-14 15:14 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 antoniocs 2016-01-21 19:20:40 UTC
Hey,

So I am working on a C application and I have long string literals and there is not way to add \ at the end of each line automatically.
So lets say I have something like this:

char *sql = "SELECT * FROM table WHERE item = x and item2 = y";

This is not a very long string but I would like to transform that in to something like this:

char *sql =  	"SELECT * 		 	\ 
 		FROM table 			\ 
 		WHERE item = x and item2 = y 	\
 		";

Formatting might be a bit off but I hope this shows what I intend.

Thanks.