NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
aberglas Posted via mailing list.
|
Posted: Sun Jun 29, 2008 2:36 am Post subject: Fix Indentation Engine and Diff |
|
|
The indentation engine wraps code around lines!
I could not see how to turn this off. I can live with the fact that this
often makes the code look bad, but worse it kills the ability of svn to
track real differences. (Different people use different editors etc.)
So it is unusable for any developer that uses a source control system.
While on that, Diffs can generally ignore changes to white space. But the
inbuilt netbeans one does not.
Despite the "ignore whitespace" option being checked. Any ideas?
(Fortunately svn diff -x -w ignores white space.)
Thanks,
Anthony
--
View this message in context: http://www.nabble.com/Fix-Indentation-Engine-and-Diff-tp18176816p18176816.html
Sent from the Netbeans - Users mailing list archive at Nabble.com. |
|
| Back to top |
|
 |
Peter Pis Posted via mailing list.
|
Posted: Mon Jun 30, 2008 5:46 am Post subject: Fix Indentation Engine and Diff |
|
|
Hi,
Diff option ignored only leading and trailing whitespaces. Recently there have been done improvements for diff (latest trunk builds). Now you can set:
- Ignore Leading and Trailing White Spaces
- Ignore Changes in inner Whitespace
- Ignore Changes in Case
in "Tools | Options | Miscellaneous | Diff"
Regards,
-Peter
aberglas wrote: | Quote: | | Quote: | The indentation engine wraps code around lines!
I could not see how to turn this off. I can live with the fact that this
often makes the code look bad, but worse it kills the ability of svn to
track real differences. (Different people use different editors etc.)
So it is unusable for any developer that uses a source control system.
While on that, Diffs can generally ignore changes to white space. But the
inbuilt netbeans one does not.
Despite the "ignore whitespace" option being checked. Any ideas?
(Fortunately svn diff -x -w ignores white space.)
Thanks,
Anthony
| |
|
|
| Back to top |
|
 |
aberglas Posted via mailing list.
|
Posted: Mon Jun 30, 2008 6:01 am Post subject: Fix Indentation Engine and Diff |
|
|
Thanks for this, I look forward to the release. We want to ignore anything
that an indentation engine might change.
But my bigger issue is how do we stop the indentation wrapping lines. It
also adds "{"s and other facist things. All I want it to do is adjust
leading white space so things line up properly. I'd suggest that that be
the default.
Not being able to use the indentation engine is a substantial restriction.
Thanks,
Anthony
Peter Pis wrote:
| Quote: |
Hi,
Diff option ignored only leading and trailing whitespaces. Recently
there have been done improvements for diff (latest trunk builds). Now
you can set:
* Ignore Leading and Trailing White Spaces
* Ignore Changes in inner Whitespace
* Ignore Changes in Case
in "Tools | Options | Miscellaneous | Diff"
Regards,
-Peter
aberglas wrote:
| Quote: | The indentation engine wraps code around lines!
I could not see how to turn this off. I can live with the fact that this
often makes the code look bad, but worse it kills the ability of svn to
track real differences. (Different people use different editors etc.)
So it is unusable for any developer that uses a source control system.
While on that, Diffs can generally ignore changes to white space. But
the
inbuilt netbeans one does not.
Despite the "ignore whitespace" option being checked. Any ideas?
(Fortunately svn diff -x -w ignores white space.)
Thanks,
Anthony
|
|
--
View this message in context: http://www.nabble.com/Fix-Indentation-Engine-and-Diff-tp18176816p18189201.html
Sent from the Netbeans - Users mailing list archive at Nabble.com. |
|
| Back to top |
|
 |
Peter B. West Posted via mailing list.
|
Posted: Mon Jun 30, 2008 8:09 am Post subject: Fix Indentation Engine and Diff |
|
|
This seems to have minimal utility, not so much in terms of seeing what
has actually changed, but in terms of commits. If commit doesn't ignore
whitespace (and that idea seems odd) what's the point of maintaining
different whitespace regimes within a developer community?
Surely it is better to define a regime for whitespace, and have everyone
stick to it, even if that means going with the lowest common denominator
of the various editors.
Jindent, which is a commercial plugin, may address some of the OP's
issues. Somewhere there is a Jalopy plugin which gives more extensive
control over formatting, but I'm not sure how to find it.
Peter Pis wrote:
| Quote: | Hi,
Diff option ignored only leading and trailing whitespaces. Recently
there have been done improvements for diff (latest trunk builds). Now
you can set:
* Ignore Leading and Trailing White Spaces
* Ignore Changes in inner Whitespace
* Ignore Changes in Case
in "Tools | Options | Miscellaneous | Diff"
Regards,
-Peter
aberglas wrote:
| Quote: | The indentation engine wraps code around lines!
I could not see how to turn this off. I can live with the fact that this
often makes the code look bad, but worse it kills the ability of svn to
track real differences. (Different people use different editors etc.)
So it is unusable for any developer that uses a source control system.
While on that, Diffs can generally ignore changes to white space. But
the
inbuilt netbeans one does not.
Despite the "ignore whitespace" option being checked. Any ideas?
(Fortunately svn diff -x -w ignores white space.)
Thanks,
Anthony
|
|
--
Peter B. West <http://cv.pbw.id.au/>
Folio <http://defoe.sourceforge.net/folio/> |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|