Netbeans 7.1 - how to double-click to select a word? - netbeans

I am used to double-click to select a word. I am addicted to using double-click to select a word. Almost everywhere it is there - eg, notepad,Gnome-edit, ...
Would please someone help me how do I set this functionality ?

What do you mean by "set"? It works "out of the box", no need to setup anything

It seems a bug of a specific NetBeans editor module, not an option you can set. For example, in NetBeans 7.4 the selection works all right (selecting the whole word) for PHP and JS files I'm working with, but not all right only for TPL files (HTML/JS/Smarty variables and values in TPL files), which are managed by the Smarty Framework plugin.

Related

How do I write javascript files with a different extension other than .js in Netbeans?

If I change the extension, Netbeans stops recognizing that it is javascript and there are underlines under all of my variable names, etc. Please help me because limitations in the php framework I am using are forcing me to label javascript files with another extension other than .js.
Using Netbeans 7.
Tools ยป Options to open Options dialog.
Under Miscellaneous, activate Files tab, then
click on the New button.
Enter your new extension (w/o the dot).
Select an appropriate MIME-type (text/javascript in your case) and
click on the OK button on the bottom when you're done.
Just curious, what framework is it that would force anyone to use JavaScript w/ other extensions than .js, please enlighten me (thanx in advance).

Eclipse content assist (for PHP or anything) not using active working set

The Eclipse content assist for PHP (and I'm assuming for other types as well) isn't using the currently active working set - it's searching ALL files in the project. How do I change it to only use the active working set?
When doing a Ctrl+Shift+R search, it was also looking for all files in the project (not what I wanted), until I clicked the small black triangle in that window and selected the working set I wanted it to use. Now it successfully only shows the files that match my search string in the working set. However, this doesn't change anything in the autocomplete content assist feature (i.e. doing a Ctrl+Space to complete the name of a function or variable). Is there any way to accomplish this?
I'm using Eclipse Indigo release, so it's very recent.
I'm afraid it's not possible the way you put it. Eclipse Working Sets just give you a way to organize your projects.
However you may want to take a look at Mylyn, which is fully integrated with Eclipse platform. Here and here is a nice overview of what you can do with Mylyn. But briefly, what it allows you to do is to create a task and maintain a context associated with it. This way, only the relevant files will be displayed in Project Explorer and autocomplete would suggest you only task-focused options.

Workspace Editor Macros in Eclipse

Is there a way to record permanent workspace macros in Eclipse and assign them a shortcut key or template?
I'd like to automate some of the actions I routinely do. Workspace editor templates are not a solution since I need to include some conditional logic as well. For example check what is a symbol to the right/left of the cursor.
See my answer at How can I launch more than one debug session in Eclipse from a single click? . The same plugin can work for you as well.

NetBeans. Disable error checking underline

How to disable error checking in NetBeans 6.9.1?
It is very annoying to have red line in the source code.
This is similar to NetBeans - Turn off - wavy red underlines - How?, but I want to disable underlines at all, not only when typing.
(It incorrectly parses PHP sources and omits syntax errors.)
Netbeans has a vast array of settings but this might do it. Try changing the drop down labelled "Wave Underlined" to "None":
Update:
Since I don't do PHP development I wasn't originally aware of the PHP plugin for Netbeans. You can find it listed in the plugins (Tools > Plugins) for Netbeans and should provide a much better environment for PHP work, with, I'm assuming, better PHP parsing and syntax highligting.
I would just click on the hint on the left side by the line numbers, it should create a pop-up, while that's still up click on the hint again. Now another pop-up will be there asking if you want to turn off the error check for either that single file, or for all files. Choose for that file, b/c it should be off by default.
I have no 6.9 at hands, but in 7.x (and believe so, for some time)
go to Options->Editor->Hints-> and uncheck
[ ] CSS (all those rules together)
[ ] HTML Validator (ditto)
Did the trick for me, when working with proprietary template files, 'coincidentally' named .html ...

How can I get block comment hotkey functionality when editing *.ftl files in Eclipse?

Trying to edit Freemarker Templates in Eclipse, and going nuts because I have some inline Javascript that I'm creating on the fly, and can't easily comment / uncomment multiple lines at a time.
I've tried the following:
expanding the scope of the "toggle comment" behavior (to things like "Editing Text", or "In Windows") - has no effect
installing the official Freemarker eclipse plugin (both 1.0 and 1.1) - has absolutely no effect that I can see, other than appearing under "Preferences ... File Associations"
associating the .ftl extension with other types of editors - HTML, JavaScript, 3rd party - all these have absolutely no effect that I can see
Is there a way I can tell if Eclipse is even honoring my file associations? How do I know, for sure, which Editor is being used? I know when a Java file is being edited, I see additional pulldown menus (Source, etc.) - is there any other diagnostic way to figure out what's going on?
Any help is appreciated.
I know this isn't what you want to hear, but the Freemarker support in IntelliJ IDEA is really great.
Unfortunately, it isn't part of the free Community Edition, so you have to get the Ultimate Edition to benefit from it. But you can try it out for 30 days for free.
No, I am in no way associated with JetBrains, just a happy user.