Home » Newcomers » Newcomers » Eclipse features
Eclipse features [message #192799] |
Thu, 08 February 2007 12:35  |
Eclipse User |
|
|
|
Originally posted by: apeng.timecruiser.com
I am getting frustrated on Eclipse. I have very a large of code base.
One time, I may open more than ten files.
1, I may put some debugging code in the java files, like
System.out.println(). But, when I finish, I may forget where do I put
the debugging code. Therefore, I need to search all open files -- tons
of files. I can't just search workspace, some of debugging codes are for
testing. Now, I am missing my favor java editor, jEdit. It allow me to
search all opening files.
2, When I open java and html files, but it's getting hard to manage
them. Eclipse should have view of all open files. Or to have better way
to group different file extensions. Right now, it is hard to look up
other files.
3, Another my favor feature in jEdit is tab/space character indicator.
My code base is huge and a lot of legacy issue. I need to use space for
indentation, but I want to know any tab characters in the files.
Thanks for any advice.
Alex
|
|
|
Re: Eclipse features [message #192896 is a reply to message #192799] |
Thu, 08 February 2007 16:12   |
Eclipse User |
|
|
|
Originally posted by: eclipse5.rizzoweb.com
Alex Peng wrote:
> I am getting frustrated on Eclipse. I have very a large of code base.
> One time, I may open more than ten files.
>
> 1, I may put some debugging code in the java files, like
> System.out.println(). But, when I finish, I may forget where do I put
> the debugging code. Therefore, I need to search all open files -- tons
> of files. I can't just search workspace, some of debugging codes are for
> testing. Now, I am missing my favor java editor, jEdit. It allow me to
> search all opening files.
While there is no search across only open files, there are Working Sets,
where you can define groups of files that belong together and give the
group a name. Searching can be done across a particular Working Set.
Aside from that, it is probably a good idea to rely less on System.out
and more on code inspection and the debugger. Eclipse's debugger is an
excellent tool - far more effective than inserting and removing
System.out calls.
> 2, When I open java and html files, but it's getting hard to manage
> them. Eclipse should have view of all open files. Or to have better way
> to group different file extensions. Right now, it is hard to look up
> other files.
Have you used Ctrl+Shift+T (Open Type) and Ctrl+Shift+R (Open Resource)?
Those shortcuts bring up an easy-to-use dialog that allow you to quickly
type partial class and/or file names to locate them.
There is also Ctrl+Shift+E which brings up a list of all open editors
for you to choose from. And use F3 a lot - place the cursor on a class
or method or variable name and hit F3 to open the declaration of that
class, method, or variable. Makes navigating around the code very easy
and fast, especially when combined with Ctrl+Shift+T.
Aside from that, why do you have so many files open at the same time?
There is a nice feature that you can configure the mazimum number of
editors that are open at any time; Eclipse will automatically close
older editors to open a new one. There really is no reason to have >10
files open at once since most people can't keep that much context in
their head at one time anyway. Ctrl+Shift+T, Ctrl+Shift+R, and F3 make
keeping files open unnecessary.
> 3, Another my favor feature in jEdit is tab/space character indicator.
> My code base is huge and a lot of legacy issue. I need to use space for
> indentation, but I want to know any tab characters in the files.
You can open a feature request in Bugzilla for it: http://bugs.eclipse.org
But really, there is nothing inherently bad about tabs; in fact they are
actually more appropriate for indentation. Alas, that is another
discussion not relevant here.
Hope this helps,
Eric
|
|
|
Re: Eclipse features [message #192901 is a reply to message #192799] |
Thu, 08 February 2007 16:12   |
Eclipse User |
|
|
|
Originally posted by: irbull.cs.uvic.ca
1 and 2 are great ideas! I think your best bet would be to open up a
thread on the platform newsgroup (at least for #2) and get some
feedback. Then you can open a bug report / feature request to discus
how best to implement this.
As for #3, this is available in the latest eclipse Milestone (3.3 M4).
( http://download.eclipse.org/eclipse/downloads/drops/S-3.3M4- 200612141445/eclipse-news-M4.html)
Cheers,
ian
Alex Peng wrote:
> I am getting frustrated on Eclipse. I have very a large of code base.
> One time, I may open more than ten files.
>
> 1, I may put some debugging code in the java files, like
> System.out.println(). But, when I finish, I may forget where do I put
> the debugging code. Therefore, I need to search all open files -- tons
> of files. I can't just search workspace, some of debugging codes are for
> testing. Now, I am missing my favor java editor, jEdit. It allow me to
> search all opening files.
>
> 2, When I open java and html files, but it's getting hard to manage
> them. Eclipse should have view of all open files. Or to have better way
> to group different file extensions. Right now, it is hard to look up
> other files.
>
> 3, Another my favor feature in jEdit is tab/space character indicator.
> My code base is huge and a lot of legacy issue. I need to use space for
> indentation, but I want to know any tab characters in the files.
>
> Thanks for any advice.
>
> Alex
|
|
|
Re: Eclipse features [message #192987 is a reply to message #192799] |
Thu, 08 February 2007 19:38   |
Eclipse User |
|
|
|
Originally posted by: dennisn.jivamedical.com
Alex Peng wrote:
> I am getting frustrated on Eclipse. I have very a large of code base.
> One time, I may open more than ten files.
>
> 1, I may put some debugging code in the java files, like
> System.out.println(). But, when I finish, I may forget where do I put
> the debugging code. Therefore, I need to search all open files -- tons
> of files. I can't just search workspace, some of debugging codes are for
> testing. Now, I am missing my favor java editor, jEdit. It allow me to
> search all opening files.
>
> Alex
Eclipse search feature is pretty good. You can search for all file with
System.out.println, and got a result as a list of all source file that
had the matched string (or matched regular expression). Then you can
cycle through those file only. They also tell you how many matched found
per file, their location (the yellow arrow on the left) and you can
refresh the search after making tons of changes, to see if you missed
something.
With plugin development, there is a isDebugging() method in
org.eclipse.core.runtime.Plugin, which lets you check if you are in
debugging mode or not.
Hope this help.
Dennis
|
|
|
Re: Eclipse features [message #193003 is a reply to message #192799] |
Thu, 08 February 2007 20:28  |
Eclipse User |
|
|
|
Originally posted by: wharley.bea.com
"Alex Peng" <apeng@timecruiser.com> wrote in message
news:eqfn0r$coc$1@utils.eclipse.org...
>I am getting frustrated on Eclipse. I have very a large of code base. One
>time, I may open more than ten files.
>
> 1, I may put some debugging code in the java files, like
> System.out.println(). But, when I finish, I may forget where do I put the
> debugging code. Therefore, I need to search all open files -- tons of
> files. I can't just search workspace, some of debugging codes are for
> testing. Now, I am missing my favor java editor, jEdit. It allow me to
> search all opening files.
As others suggest, maybe the debugger would be a better tool for you than
putting in println() calls.
But anyway, if you put something like //TODO or //DEBUG before your inserted
code, you can view it in the Tasks view. It automatically keeps track of
all those entries (you can tell it what to look for; it looks for //TODO by
default) and lets you jump around between them.
|
|
|
Goto Forum:
Current Time: Sun May 11 07:18:08 EDT 2025
Powered by FUDForum. Page generated in 0.07842 seconds
|