[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.tools.pdt] PDT2: code templates: indentation & comment templates
|
- From: Vlad Koshelev <vlad.kosh@xxxxxxxxx>
- Date: Wed, 10 Sep 2008 13:35:41 +0400
- Newsgroups: eclipse.tools.pdt
- Organization: EclipseCorner
- User-agent: Thunderbird 2.0.0.16 (X11/20080825)
Hi,
I have a couple of questions:
1. When I insert a code template at non first position (N tabs before
cursor) the first line of template inserts the right way, but the rest
has indentation of N tabs:
Expecting (N = 2):
// cursor at 2 tabs before inserting a template
foreach ($array_variable as $variable) { // N tabs
|; // N + 1 tabs
} // N tabs
Result:
foreach ($array_variable as $variable) { // N tabs
|; // 2 * N + 1 tabs indentation
} // 2 * N tabs indentation
Here are my settings:
Formatter: Tab policy = Tabs
Editor->Typing: Tab key indents the current line = true
2. Is there any way to change default templates for "Generate Element
Comment" feature (right click->Source->Generate Element Comment)?
Changing templates in Preferences->PHP->Code Style->Code
templates->Comments seems to be not working.
I'm using Ganymede and PDT 2.0.0 (N20080907) on Linux.
Thanks!