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 240277 - Split line Test Case
Summary: Split line Test Case
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-11 14:11 UTC by kimsp
Modified: 2014-01-13 11:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kimsp 2014-01-11 14:11:02 UTC
Split line Test Case

Move caret behind "abcde"
Press Ctrl+Enter

Expected result:
The sting literal is divided to the two lines, as it was common text. No additional characters are inserted, so there is syntax error in the editor now.

Actual result:
Pop up asking "Split into declaration and assignment".

Pressing enter to this results in:
String str;
str = "abcde 123456";

The desired behavior can be achieved by pressing cmd+enter on a Mac.
Comment 1 Jiri Prox 2014-01-13 11:52:45 UTC
The shortcuts are different on mac and on other systems