Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332015 - [typing] Enter inside a string literal indents differently from Ctrl+I
Summary: [typing] Enter inside a string literal indents differently from Ctrl+I
Status: CLOSED DUPLICATE of bug 65317
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Rajesh CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-07 08:33 EST by Deepak Azad CLA
Modified: 2011-02-11 01:49 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Deepak Azad CLA 2010-12-07 08:33:58 EST
I20101206-1800

Similar to Bug 331551

1) Paste
-----------------%<-----------------
	 void foobar() {
		 String s="some string";
	 }
-----------------%<-----------------

2. place caret anywhere inside the " " 
3. press 'Enter'
4. Ctrl+I ==> indentation changes

(In this case I think indent on Enter is better.)
Comment 1 Dani Megert CLA 2010-12-08 04:19:18 EST
> (In this case I think indent on Enter is better.)
Correct. If in doubt you can always take a look how the formatter would format similar code.
Comment 2 Deepak Azad CLA 2011-02-11 01:49:42 EST
This got fixed along with bug 65317.

*** This bug has been marked as a duplicate of bug 65317 ***