Home » Language IDEs » ServerTools (WTP) » Re: Ident, not Format, in XML files
Re: Ident, not Format, in XML files [message #229219] |
Thu, 19 March 2009 10:22 |
Ed Merks Messages: 33216 Registered: July 2009 |
Senior Member |
|
|
Raul,
I don't have WTP installed, but I wonder if there are formatting
preferences such that you can tell it not to break long lines... Have
you looked at the preferences for this?
It might be better to ask this question on the web tools newsgroups, so
I've added it to the "to" list of the reply.
Raul Acevedo wrote:
> Is there a way to get Eclipse to ONLY indent a line in XML files?
>
> Ctrl-I is bound to "Format Active Elements", and I don't see any
> commands that will simply indent the current line.
>
> Raul Acevedo
> http://www.cantara.com
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
| |
Re: Ident, not Format, in XML files [message #229279 is a reply to message #229272] |
Thu, 19 March 2009 18:51 |
Eclipse User |
|
|
|
Originally posted by: dcarver.starstandard.org
Select the line you want to format, then press CTRL+SHFT+F
If you have multiple lines, you want to format, select them and do the
same thing.
Dave
Raul Acevedo wrote:
> I've tried every option, plus key bindings, to make this happen but it
> just doesn't.
>
> Is there a way to make the XML editor only indent without screwing up
> the entire line, or should I just file a bug for this?
>
> Thanks,
>
> Raul Acevedo
> http://www.cantara.com
>
|
|
| | | | |
Re: Ident, not Format, in XML files [message #229346 is a reply to message #229321] |
Fri, 20 March 2009 17:10 |
Eclipse User |
|
|
|
Originally posted by: dcarver.starstandard.org
Ed Merks wrote:
> Raul,
>
> Now with an example it's becoming more clear. So you don't want it to
> introduce any new line breaks even to achieve "properly indented tags."
> Given it doesn't do that, you could enter a feature request, but it's
> likely to sit around for a long time unless someone like you not only
> wants something but is willing to do something about it too...
> Then again David Carver can be a bit fanatic. :-P
What me? I prefer zealot, instead. :)
As a fyi to the community in general, we are discussing formatting
issues and use cases during eclipsecon, so hopefully we can get this
working better for all stake holders in the future.
Dave
|
|
| |
Re: Ident, not Format, in XML files [message #229361 is a reply to message #229354] |
Fri, 20 March 2009 18:16 |
Eclipse User |
|
|
|
Originally posted by: dcarver.starstandard.org
On the surface it doesn't seem difficult, but won't know until we get
into it.
Dave
Raul Acevedo wrote:
> I filed a feature request for this:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=269556
>
> David, do you know if this would be simple to do? I assume it wouldn't
> be difficult because the existing Format command already knows how to do
> this, it would be a matter of writing a new Indent Line command that
> only does the line indentation part.
>
> Thanks,
>
> Raul
>
|
|
| |
Goto Forum:
Current Time: Fri Sep 20 14:41:15 GMT 2024
Powered by FUDForum. Page generated in 0.03032 seconds
|