facebook

javascript editor smart selection on double click

  1. MyEclipse IDE > Off Topic
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #531694 Reply

    fenyoapa
    Participant

    Where can I set smart word selection properties for javascript editor?
    When I double click on a word in the editor it selects all the page or sometimes a half.
    I wish this feature to work same as in the java editor: double click selects one word with predefined separator characters (e.g. space, brackets, quotes etc.)
    And on triple click I want to select that line (now it select half a page and jumps to another line)

    • This topic was modified 4 years, 4 months ago by fenyoapa.
    #531716 Reply

    support-swapna
    Moderator

    fenyoapa,

    By default, double-clicking in a text based editor like MyEclipse Javascript editor will result in the complete word to be selected and triple click selects the entire line.

    Have you installed any other third party plugins which might have broken the default behavior for javascript editor? If yes, then please share the plugins details.

    You can reset the default editor for javascript file from here and check if the issue persists : Window > Preferences > General > Editors > File Associations. Select ‘*.js’ and set ‘MyEclipse JavaScript Editor’ as default.

    Please check if the issue persists in a new workspace as well to rule out workspace specific issues.
    If you are still seeing the problem with MyEclipse JavaScript editor, then please share with us the MyEclipse version details from Help > About MyEclipse section, OS and version details and the .log file located in workspace dir/.metadata/.log for further investigation.

    Sorry for inconvenience caused. Please let us know how it works.

    –Swapna
    MyEclipse Support

    #531785 Reply

    fenyoapa
    Participant

    Thank you.
    It is my fault I forgot to mention that these are *.js.jsp files with js and jsp mixed content and .js.jsp extension.
    I added .js.jsp to File Associations (I could not add *.js.jsp) and set JavaScript Editor (default) at Associated Editors. (I don’t have ‘MyEclipse JavaScript Editor’!).
    I have tried also with JavaScript Viewer and Java Editor and with a fresh new workspace but the problem persists.

    #531874 Reply

    support-swapna
    Moderator

    fenyoapa,

    I am afraid I haven’t worked with .js.jsp extension files before. When I created one with .js.jsp extension, by default, the file opens in JSP editor and I do not see the problems with smart selection when the file is opened in JavaScript editor.

    Can you please send us a sample .js.jsp file along with screenshots of the editor view to help investigate further? Also share with us MyEclipse version details from Help > About MyEclipse section and the .log file located in workspace dir/.metadata/.log.

    –Swapna
    MyEclipse Support

    #532419 Reply

    fenyoapa
    Participant

    I noticed that when I right click on the file in the Package Explorer and Open With -> Text Editor (or JavaScript Editor) then there is no problem.
    So what is not working here is the File Associations.
    I send some picture – with these settings the problem exists. I think the file is opened with MyEclipse JSP Editor despite of these settings.

    myeclipse_file_assoc_1.jpg

    myeclipse_file_assoc_2.jpg

    • This reply was modified 4 years, 4 months ago by fenyoapa.
    #532480 Reply

    support-swapna
    Moderator

    fenyoapa,

    Thank you for the screenshots. I see that the File Associations for .js.jsp is not working as expected. I have raised a bug for the dev team to support *.js.jsp files. If possible, please share with us a sample .js.jsp file.

    I could work around the problem by right clicking on the file > Open With > Other > select ‘JavaScript Editor’ and also check the ‘Use this editor for all ‘xxx.js.jsp’ files. From then on, every time I create a new .js.jsp file, I see it opening in the JavaScript Editor. Attached is the screenshot for your reference.

    Hope this helps. Sorry for inconvenience caused.

    –Swapna
    MyEclipse Support

    Attachments:
    You must be logged in to view attached files.
    #532482 Reply

    fenyoapa
    Participant

    I attached test.js.jsp.
    If I double click on any word under line 20 I see this:

    myeclipse_double_click_test.jpg

    But your workaround works for me too.
    Thank you

    #532483 Reply

    fenyoapa
    Participant

    I had to change the extension for security reasons error.

    #532484 Reply

    fenyoapa
    Participant

    Hm, now…

    Attachments:
    You must be logged in to view attached files.
Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: javascript editor smart selection on double click

You must be logged in to post in the forum log in