Community
    • Login

    Code Completion doesn't work in notepad++ . Help!!!!

    Scheduled Pinned Locked Moved General Discussion
    5 Posts 4 Posters 2.4k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Gourav DasG Offline
      Gourav Das
      last edited by

      I was trying to code in java on notepad++ and i couldn’t find any auto completion for it.
      For example :

      i used

      Scanner scan = new Scanner(System.in);
      int cal = scan.
      

      after i press scan. it should show me the available methods in Scanner class , but it doesn’t do that. What can i do.

      Here is the picture

      Screenshot (2176).png

      1 Reply Last reply Reply Quote 0
      • abdulbadiiA Offline
        abdulbadii
        last edited by

        Make sure its configuration was set
        AC.png

        abdulbadiiA 1 Reply Last reply Reply Quote 0
        • abdulbadiiA Offline
          abdulbadii @abdulbadii
          last edited by

          Apologize me as above is:
          https://github.com/abdulbadii/notepad-plus-minus

          Don’t be confused as It has “Language completion” instead of “Function completion” and
          an extra “ignore letter-case” option for auto completion response.

          Alan KilbornA 1 Reply Last reply Reply Quote -1
          • Alan KilbornA Offline
            Alan Kilborn @abdulbadii
            last edited by

            @abdulbadii

            Please don’t discuss or advertise your forked version here!!
            Haven’t you been asked to NOT do this before?

            PeterJonesP 1 Reply Last reply Reply Quote 0
            • PeterJonesP Offline
              PeterJones @Alan Kilborn
              last edited by

              That said, other than the wording on the preferences screen, the official Notepad++ v7.8.5 Settings > Preferences > Auto-Completion does have those options:
              5701f1b6-f448-4f77-ac02-45307b75b399-image.png

              Unfortunately, I’m not sure it will do completely what @Gourav-Das wants. It has function completion for known functions (and word completion for words found elsewhere in your document); and it has Function parameters hint on input for helping you input the arguments/parameters to known functions. But I don’t know if the <installdir>\autoCompletion\java.xml has all (or even any) of the java.util.Scanner methods in the auto-completion list.

              And the more I think about it, even if it did, Notepad++ doesn’t have the necessary language-awareness to be able to see that you’ve declared scan as a Scanner instance, and to thus later be able to tell “if the user wants to autocomplete on methods available to scan, I can remember that scan is a Scanner and supply only Scanner methods”. I know there are editors out there that can do such – but from the ones I’ve seen(*), it’s generally only for one or a limited set of languages; Notepad++ has syntax highlighters for dozens of languages, and the development team cannot be expected to be expert enough in all of those languages to build in that level of language-awareness. It might be possible to add that level of awareness using a plugin, but I don’t know whether such a plugin exists for Java-awareness or not.

              (*: For example: the Visual Basic for Applications GUI, and thus the VBA macro-editors for MS Office products, can do that… but it’s for just the one VBA language. And I think Microsoft Visual Studio has some of that… but from what I understand, you have to install each language separately into VS, and you tend to get the whole benefit of the paid MS staff behind such feature sets. There may be custom-purpose Java editors/IDE out there that bring that level of Java-awareness; but I don’t know of any general-purpose editors like Notepad++ that can track a specific variable’s class in whatever programming language you happen to have chosen, and can autocomplete appropriately for that language and class.)

              1 Reply Last reply Reply Quote 1

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors