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.
When breaking a string the cursor is placed at the start of the next line instead inside the double quotes on the new line. Example. After pressing enter inside the string of the first line the second line with quotes is automatically generated and the cursor is placed at position 2 of the next line. The position should be inside the newly created quotes on the new line. String readQuery = "SELECT * " + | ""; ^cursor
It seems to be working fine for me in a dev build. What are your indentation settings (ie. Tools-Options -> Editor -> Indentation and T-O -> Java Code -> Formatting -> Indents)? Thanks.
I'm running Dev 200708171200 btw Please see the attached files for the settings.
Created attachment 46937 [details] Editor Indention settings
Created attachment 46938 [details] Java Code Formatting Settings
Interesting, it's reproducible in today's build. Maybe there was something with my userdir, but here is what I did today: 1. fire up a new build with fresh testuserdir 2. open an old java project 3. create a new java class NewClass 4. create a method and type noot's sample code in it 5. when pressing enter inside the string the caret is not positioned properly, exactly as reported
I also did not import settings from my old Netbeans (5.0) user data and the projects are also created by the 5.0 Netbeans version.
*** This issue has been marked as a duplicate of 112241 ***