Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » can not highlight all occurrence of a variable in javascript file in new version of eclipse(can not highlight all occurrence of a variable in javascript file in new version of eclipse)
can not highlight all occurrence of a variable in javascript file in new version of eclipse [message #1803458] Thu, 28 February 2019 21:39 Go to next message
Eclipse UserFriend
after version Oxygen, if there are just common functions in js file, the highlight of all occurrence of selection variable works fine. but if we use define it as a module, then the highlight does not work.

no problem before version Neon.

let me explain it by example:
1. just a common function in the js file, works fine:
index.php/fa/34982/0/

2. put it in a define module, the hightlight does not work:
index.php/fa/34983/0/
we can see, the cursor is in the variable sum, but it does not highlight occurrence of the variable.

3. And I found that, from verion Oxyngen, the outline of js file shows define as the top level:
index.php/fa/34984/0/

4. before version Neon, the outline shows the function name only:
index.php/fa/34985/0/

if it can works as the version Neon (and before) that hightlight all occurrence of the selection variables, it is very convenient to check variable when writting and reading the javascript code.
  • Attachment: 1.jpg
    (Size: 7.33KB, Downloaded 742 times)
  • Attachment: 2.jpg
    (Size: 9.83KB, Downloaded 753 times)
  • Attachment: 4.jpg
    (Size: 6.01KB, Downloaded 751 times)
  • Attachment: 3.jpg
    (Size: 2.59KB, Downloaded 742 times)
Re: can not highlight all occurrence of a variable in javascript file in new version of eclipse [message #1803580 is a reply to message #1803458] Mon, 04 March 2019 16:28 Go to previous messageGo to next message
Eclipse UserFriend
You're asking a javascript question in a forum for the Eclipse *Java* Development Tools.

Since meanwhile there are several offerings for Javascript support in Eclipse, I suggest you first check which Eclipse plug-ins for Javascript you have installed, to find the appropriate forum.
Re: can not highlight all occurrence of a variable in javascript file in new version of eclipse [message #1803698 is a reply to message #1803580] Wed, 06 March 2019 20:22 Go to previous messageGo to next message
Eclipse UserFriend
Hi Stephan, thanks for your reply, I try to find answer and search by keywords "occurrence", I see there are some posts in this forum, so I post in this forum.

I download the eclipse of version Neno, I don't install plugins, and it works, but for version Oxygen, I download the eclipse, it doesn't work. so I guess there are some changes between version Neno and Oxygen so it does not work, also that is why I ask for help in this forum.

Thanks for your answer, I tried some plugins of javascript or web developer, try to find if there is any plugin I can use to get it work. but none of them works.

Is there a configuration or way to make it work? or, Is the feature really removed from version Oxygen so it does not work any more from version Oxygen? :(
Re: can not highlight all occurrence of a variable in javascript file in new version of eclipse [message #1803699 is a reply to message #1803698] Wed, 06 March 2019 20:36 Go to previous messageGo to next message
Eclipse UserFriend
Once more: you're asking your question in a wrong forum. JDT is about Java, not Javascript. The fact that several editors support "mark occurrences" doesn't mean they're all the same :)

Eclipse traditionally has Javascript support via the Web Tools Platform Project, their forum is: https://www.eclipse.org/forums/index.php/f/251/

Very recently, an alternative has been added (not yet part of any out-of-the-box packages, AFAIK): WildWebDeveloper, with forum at https://www.eclipse.org/forums/index.php/f/444/ (where you could actually be the first person to ask a question :) )
Re: can not highlight all occurrence of a variable in javascript file in new version of eclipse [message #1803969 is a reply to message #1803458] Thu, 14 March 2019 11:13 Go to previous message
Eclipse UserFriend
Ohhhh, Thanks a lot for your kind suggestion, I post this question in that forum. :))
Previous Topic:build on one JDK (say OpenJDK) , and deploy to run on another JDK (
Next Topic:understanding "Illegal character in scheme name"
Goto Forum:
  


Current Time: Sun Jun 22 21:01:10 EDT 2025

Powered by FUDForum. Page generated in 0.12910 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top