netbeans doesn't mark TODO in error line - javascript

I'm switching from eclipse with Aptana plugin to netbeans 7.1.
Is it possible to mark TODO in error line on the right with a blue dot as in eclipse?

In Netbean you can't do that anymore, the only way to retrieve your tasks is to use the Tasks Window. Maybe you can look for a plugin to add marks in left/right margins.
Let me know if you found one up to date, I've made some search but found nothing.

You can, but it differs a bit in implementation from Eclipse.
(tested in Netbeans 8) click Window > Action Items, a log console should appear, then go to Tools > Options > Teams > ToDo patterns, and add or change your TODO mark pattern.
once done, you can view TODO's (or any other thing you've marked) on the Action Items console.

Related

Git detects changes for the whole file once opened but not changes were made. Using windows and vscode

I have created a repo on Github, and pushed exercise files to practice on. When I open one of these files and hit ctrl+save or add a single line of code the editor marks everything as changed. Even when I have made not changes or just a single line change.
For example, on the first image - I did not change anything but ctrl+save changed the formatting which should not be a problem.
In the second image, it is possible to see that almost the entire file changed but in reality is the same
I am using VSCode and Git with the latest updates on Windows.
Much appreciate any guidance!
I think it is because on the save action you have some kind of automatic code formatter tool enabled, like prettier.
If you want to skip this formatting action then this might help: How do I turn off text formatting on save in visual studio code?

Visual Code intellisense transform clg to ChannelMergerNode [duplicate]

I have a user snippet configured in Visual Studio Code. Let's take one of the items in this snippet: one with the prefix imp.
Now, prior to the recent VSCode update, as soon as I did something like the following.
it automatically showed the autocompletion box to me (I didn't have to press Ctrl + Space to activate it), as shown below:
But now after the update, something strange has happened. When I type in just im, obviously, it shows me the <img> autocompletion suggestions as shown below:
But when I continue to type the full thing imp, the autocompletion box gets hidden. It's only when I press Ctrl + Space that I get the autocompletion box again.
What is the reason for this problem and how to fix it?
I can reproduce your issue exactly, which led me to look to see if it has been reported on github. It has, see Snippets gone from IntelliSense.
From same issue as above:
I have pushed a fix for next insiders and I have pitched this for the
1.75.1 recovery release
It is in today's Insiders (I just tested it) 02/03/2023.
So you can either try the Insiders Build now or wait for the Recovery Release. And continue to use the manual trigger of Ctrl+Space in the meantime.
As #WayneBloss mentions in a comment below, disabling the snippetsPreventQuickSuggestions setting might fix the issue.

Tern doesn't go to definition in Eclipse

I'm using Tern IDE 0.9 for Javascript on Eclipse 4.4 in windows.
When pressing on a function with CTRL + Click, instead of going to definition it opens a window and asks me if i want to choose
Open an editor on the selected
Tern - go to definition
When choosing the second option, it doesn't do anything.
On a clean Eclipse without any plugins except the Tern IDE, it works.
Can anyone assist?
You have two commands both bound to the Ctrl+Click key stroke.
Open the Preferences and look in 'General > Keys' for the clashing commands. You can click on the 'Binding' column to sort by the binding which should help to find the clash.
Change one of the clashing bindings to something else to remove the issue.

Netbeans additional unneeded code hints

When i'm in Netbeans 8.0, developing JavaScript and i'm on a line of code like this:
var sum = (example / anotherExample)
And i type a dot after that so it becomes this:
var sum = (example / anotherExample).
And press CTRL+Space i get a lists of some code hints with the description of:
JS Platform
Like this:
Whenever I press CTRL+Space for the second time while im on that interface, it gives me the list with all possible code hints for that line of code.
Why is this?
This CTRL+Space is a shortcut key to get hint about all the fields,methods,etc. defined for the attribute which you have used!
Taken from Netbeans Documentations,
When the user clicks Ctrl-Space, or an alternative key combination
defined by the user, our code completion entries should appear. This
is the COMPLETION_QUERY_TYPE. Alternative query types exist, such as
DOCUMENTATION_QUERY_TYPE and TOOLTIP_QUERY_TYPE.
It helps completion of your code in a quick way without needing you to put efforts by typing manually the complete statement!
So,it's a much needed feature in IDE's and is a boon for developers. Also,if you have the documentation installed in your NetBeans Path or embedded in your NetBeans IDE,it will show the complete description of those parameters(fields,methods,etc) in the space.That's an extra plus point.
Happy,CHEERS!

How to enable code assist for the DOM for JavaScript projects in Eclipse

How can I simply get in this little popup (code completion) all possible methods/functions given when I type window.(blablabla).
Because if I type window. there is no "event" method for example.
In NuSphere there are all methods been listed.
Please differentiate between JavaScript and DOM code assist. There are many questions/answers here about this but it's ambiguous which of these two they refer to. None, I've seen, particularly claims to have found a solution for DOM and most mentions Aptana as standalone IDE or Eclipse plugin for solution.
For reasons outside the scope of this question I use Eclipse Indigo (3.7.2) and got this working w/o Aptana. This solution probably depends on the JavaScript Development Tools plugin.
First in the Navigator pane right click the project and hover the Configure option. Select Convert to JavaScript project or Add JavaScript Support.
Open project properties and a JavaScript item should appear in the left hand side list of configuration options. Expand and select Include Path. In the Libraries tab on the right you will see ECMA Script and ECMA 3 Browser Support. Switch to the Global Supertype tab and tick the ECAM 3 Browser Support checkbox. Restart Eclipse.
--
However in my case this last option didn't seem to work (when selected 'window' as global supertype, below the list got 'Window() null') and window. didn't bring results but document. and all other JS globals did. (So I could say for e.g. var w = document.defaultVeiw; and w. did bring up desired list.)

Categories