Project
IntelliJ IDEA
Priority
Normal
Type
Usability Problem
Fix versions
No Fix versions
State
Can't Reproduce
Assignee
Peter Gromov
Subsystem
Template Languages. Velocity
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   Taras Tielkes
    3 years ago (27 Jun 2008 16:30)
  • Updated by   Peter Gromov
    4 months ago (06 Oct 2011 23:51)
  • Jira: IDEADEV-27948
    (history, comments)
 
IDEA-44554 Velocity: Ctrl-W on string literal using double quotes too greedy
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
Inside a string literal
  • First Ctrl-W includes all characters of literal (except surrounding quotes)
  • Second Ctrl-W includes much more

It would be convenient if there was a step in between, like:
  • First Ctrl-W includes all characters of literal (except surrounding quotes)
  • Second Ctrl-W includes all characters of literal (+including+ surrounding quotes)
  • Third Ctrl-W includes much more

This make selecting and cutting/copying string literals expressions much easier.
Also, it would be more consistent with HTML/JSP editor behavior.

It works as expected for literals using single quotes ('). Only the behavior with double quotes (") is unexpected.
Comments (1)
 
History
 
Linked Issues (?)
 
Taras Tielkes
  Taras Tielkes
27 Jun 2008 16:39
3 years ago
An additional observation: for some reason, Ctrl-W seems to work in a much more reasonable way if the (double-quoted) string literal contains reference(s) to velocity variables.