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

Summary: Split line Test Case
Product: java Reporter: kimsp <kimsp>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

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