History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-12224
Type: Bug Bug
Status: Open Open
Assignee: Maxim Shafirov
Reporter: Chandra
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Copy String Literal

Created: 04 Apr 07 00:51   Updated: 05 May 07 11:17
Component/s: Editor. Editing Text

Build: 6,180
Severity: High


 Description  « Hide
public String q1 = "hello\nworld";

When I select the string literal without quotes and copy, I get
hello
world

When I select the string literal with quotes and copy, I get
"hello\nworld"

This is wonderful. However, if I have

public String q = "hello\n" +
"world";

When I copy it without quotes I get the following in my clipboard.
hello\n" +
"world

From previous example, I tend to expect the value of String. Please provide a way to copy String Literal values. They are extremely useful for copying SQL queries etc which cannot be written in one line.



 All   Comments   Work Log   Change History      Sort Order:
Taras Tielkes - 04 Apr 07 10:26
Might be easier when IDEADEV-9347 is implemented

Chandra - 04 Apr 07 10:33
I hope that IDEA team will recognize this as an important feature in the spirit of IntelliJ. It just seem to be the right behavior to copy

hello
world

when I copy

hello\n" +
"world


Chandra - 05 May 07 11:17
For now, I have posted this plugin for the compile time constants. Me and colleagues of mine have found it very helpful on day one-- specially for dealing with SQL.
http://plugins.intellij.net/plugin/?id=1464