TODO task netbeans php - netbeans

I'm using netbeans to develop web applications using php and javascript.
I was using eclipse and I could list all my tasks using the //TODO comment.
I don't understand how does it works on netbeans.
So is there a solution to create tasks using comment and how can I access to my task list ?
I have netbeans 7.4 on OSX

Check Tools|Options|Misc.|Action Items, there is a list of comments to IDE should look for in your code. Now open Window|Action Items and it will show all found tasks

In Netbeans 8.0.2 (my current) Action Items list is present in Tools|Options|Team|Action Items. And then, like #ladar said: Window|Action Items.

In NetBeans IDE 8.1 this is still in:
Window | Action Items
or there is the shortcut:
Ctrl + 6
In project you can use not only // TODO comment, but also // FIXME and other.
Full list of the special comments you can find and edit in:
Tools | Options | Team | Action Items
https://netbeans.org/features/ide/
The Action Items window automatically scans your code and lists commented lines containing words such as "TODO" or "FIXME", as well as lines with compilation errors, quick fixes, and style warnings.

Although I have Netbeans 8.0.2, the shortcut "Ctrl+6" may work for you, too.

Related

Highlighting all occurrences of a search string in Eclipse Java editor

If you search for a String in Netbeans Java editor, it automatically highlights all occurrences of that string.
But, how can I achieve this feature in Eclipse?
(I checked Preferences > Java > Editor > Mark Occurrences, but it seems it is only for similar variables methods etc. but not for for search matches)
Have you tried the Glance plugin for Eclipse? fully meet your requirements and even with more features.
demo and Github of this project:
http://ystrot.github.io/glance/
UPDATE: available in Eclipse marketplace
http://marketplace.eclipse.org/marketplace-client-intro?mpc_install=1012
You can enable "Toggle Mark Occurrences" (shortkey is ALT+SHIFT+O).
For the color of the select text,you can:
Window->Preferences->General->Editors->Text Editors->Annotations->Occurrences
Hope it useful.
eclipse instasearch plugin is a very useful plugin for search needs inside eclipse.
It is based on lucene. This is also available in eclipse marketplace.
It has extensive feature set.
Instantly shows search results
Shows a preview using relevant lines
Periodically updates the index
Matches partial words (e.g. case in CamelCase)
Opens and highlights matches in files
Searches JAR source attachments
Supports filtering by extension/project/working set

add method/functions list like visualstudios on netbeans 7 editor toolbars?

is there any way, to enable a dropdown list of methods or functions, on the Editor Toolbars of NetBeans 7, like VS does? , i mean the toolbar that is inside on the tab of each file when you are editing a code, that has some options like, "last edit, next breakpoint, next bookmark, ..."
In VS is really helpful this feature, to jump of functions o methods more quickly, i know that netbeans has the navigator, but sometimes this help more
Greatings
is there any way, to enable a dropdown list of methods or functions,
on the Editor Toolbars of NetBeans 7, like VS does?
There is no way provided by standard NetBeans IDE offering or certified plugins available in NetBeans Update center, but a NetBeans plugin can be written for doing what is expected in your question. Has it been done? In my opinion no, as no one asked till now. Now that you have asked someone may think of developing such a plugin.
Best way to expedite such request and feature to be added to NetBeans is to add a Request for Enhancement in the NetBeans issue tracker.
In VS is really helpful this feature, to jump of functions o methods
more quickly, i know that netbeans has the navigator, but sometimes
this help more
There are many ways to reach specific methods in NetBeans IDE. You have already listed one and that is Navigator. Others include GoTo Type [CTRL+O] and GoTo Symbol [CTRL+ALT+SHIFT+O]

eclipse keyboard shorcut list/poster

I am trying to locate a list of shorcuts so I can print it and learn a couple every day till I master not using the mouse.
I know about Eclipse Shortcut Overview but this is using emacs bindings, and I am using the default shorcuts.
I am not looking for an blogpost mentioning 10 nice shorcuts, I want a comprehensive list (maybe not complete but near, whatever fits in one page printout)
I am using eclipse 3.6 on windows but a list of 3.5 etc would help too.
I always found Ctrl+Shift+L the only first shortcut I needed to know with Eclipse.
Wherever you are, type Ctrl+Shift+L, and the list of all shortcuts available to you given the current context will pop-up.
See this article for reference.
in Preferences > General > Keys
you got them all (dunno about EMAC ..)
and - but - can export them to csv !

Less known but useful features in Eclipse

I have been using Eclipse for a long time, the feature that is less known but very useful is the Scrapbook Page, that allows you to execute sections of the Java code without having them to be complete classes. For example, if I need to execute this simple for-loop I can do this by creating a scrap page (File->New->Other->Scrapbook Page) and then typing the following and they pressing the "Execute the Selected Text" or Ctrl-U will execute the code directly
for (int i=0; i < 10; ++i)
{
System.out.println("Here is the scrapbook page line: " + i);
}
Please post other less known but useful features that are available with eclipse. I know that there are entries in SO that mention the useful shortcuts available in eclipse, however this one is about forgotten or less known features
The plugin Spy (Alt+Shift+F1) is certainly one not very advertised.
Yet if you have any question about "how I develop a feature X looking like the one in eclipse", it can be very useful to quickly locate the right eclipse java source which does implement that feature!
(source: willianmitsuda.com)
See also this Guide to eclipse3.5:
The Plugin Spy gives you easily information about the running UI.
Press Alt+Shift+F1 to get information about the current running Eclipse plugin / data types / screen.
This way you can get immediately access to the plugin which is currently running.
(source: vogella.de)
Eclipse 3.5 introduced the possibility to check which plugin contributed a menu. Press "Alt+Shift+F2" and select a menu to see who is contributing this menu
(source: vogella.de)
I like the fact, that you don't necessarily need to create a new class by using New->Class, when having the class source somewhere in the clipboard. You can simply select the destination package and paste the clipboard content.

Storing code snippets in eclipse

I'm a recent semi-convert to Eclipse after 20 years of using vi and gvim. One of the things I miss about gvim is that I could cut a bunch of different snippets of code into named buffers, and paste them at will when doing something like repeating a common idiom. For instance I'd have it so "ap would paste
DatabaseHandle handle = null;
try
{
handle = DatabaseConnectionPool.newHandle();
and then "bp would paste
handle.commit();
}
finally
{
handle.rollback();
DatabaseConnectionPool.returnHandle(handle);
}
And I could repeat both of them over and over in the course of a day. In an answer to another question, somebody mentioned that you could "manage code snippets" in Eclipse, but didn't mention how. So now I'm asking: how do you manage code snippets in Eclipse?
You might want to store those two snippets into a code template, as explained in this tutorial.
And do not forget about the possibility to quickly execute any kind of java code snippets in a scrapbook (not exactly what you want, but it can come in handy at times)
Newtopian adds (in the comments)
In fact templates become much more powerful by adding variables and tabstops within, so your example above would become dbHandle ctrl+space. It would copy snippets from both parts and place your cursor right in the middle.
Eclipse also offers something very similar to the templates feature described by VonC called (would you believe) snippets. Window > Show view > Snippets.
To add a new snippet category: Right click in the Snippets window and click Customize...
Click New > New Category. Enter a category name if necessary (e.g. "Java"). Click Apply.
With your chosen category selected, click New > New Item. Enter your snippet.
To use a snippet, put the cursor where you want to insert the snippet, then double click on a snippet in the Snippets window.
I ran into the Snip2Code plugin recently.
It did the job, and I can collect and search snippets in a quick way.
Well a picture worths a thousand words, what about this one?
The question is old but the link of the answere is older ;)
Here is a nice tutorial:
http://www.dansshorts.com/post/creating-snippets-in-eclipse
I have used snippets in some IDEs, like Dreamweaver and Homesite, an old Coldfusion IDE. I also use a lot of snippets in MySQL Workbench - where i type a lot of SQL, very handy there.
I am now using Eclipse Java EE IDE for Web Developers Version Indigo Release and found the snippets panel in Window|Show View|Other...|General|Snippets. I was able to manipulate it and figure out how to add the code I wanted as snippets and how to use it efficiently.
Use Eclipse Snipmatch (Part of Eclipse for Java Developers Package).
Works very well for Java code snippets but also works for any other language like HTML, ABABP, PHP etc.
You can convert any code fragment from your editor directly to a code template. Highlight the code you'd like to convert to a snippet, context menu "create snippet", complete the form and done.
snippets can be shared via Git repositories with your team members
Manual:
https://www.eclipse.org/recommenders/manual/#snipmatch
Installation:
https://marketplace.eclipse.org/content/snipmatch