Community
    • Login

    Auto Complete feature is not working properly

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    15 Posts 7 Posters 1.9k Views
    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.
    • Alan KilbornA
      Alan Kilborn @TuiSilva
      last edited by

      @TuiSilva said in Auto Complete feature is not working properly:

      damn feature does not work, am i still doing something wrong ??

      Hard to say, as you haven’t said exactly what you are doing…

      @TuiSilva said in Auto Complete feature is not working properly:

      would have posted a image link but apparently i need reputation

      Gave that to you, so go ahead, if it helps explain what you so far haven’t.

      1 Reply Last reply Reply Quote 1
      • Mark OlsonM
        Mark Olson
        last edited by Mark Olson

        to be able to close the tags for me

        It’s not entirely clear whether you’re referring to closing HTML tags. If that’s what you want to do, go to Settings->Preferences from the main menu bar, then go to the Auto-Completion tab from the form that pops up, then select html/xml close tag near the bottom of the dialog. See below.

        75c8796a-40c2-491e-b48b-a86edc029b8e-image.png

        Once you turn on that setting, if you’re in an XML or HTML file, when you input <foo>, Notepad++ will automatically insert the closing </foo> tag.

        TuiSilvaT 1 Reply Last reply Reply Quote 3
        • TuiSilvaT
          TuiSilva @Mark Olson
          last edited by PeterJones

          @Alan-Kilborn said in Auto Complete feature is not working properly:

          Hard to say, as you haven’t said exactly what you are doing…
          Gave that to you, so go ahead, if it helps explain what you so far haven’t.

          Thanks i will post it here.

          So i might not have explained myself correctly and i don’t really know if Notepad++ does this but on the place were i am taking a course they have a software called Visual Studio 2022 witch is more directed to more complicated programs and programming like C#, its the hardest subject i am having and not my cup of tea, but i kinda need to have it i want to complete the HTML, CSS, JavaScript classes.

          For some reason they gave the class with the C# on the Visual Studio 2022 1st then the HTML, CSS and java ones, any how that does not matter now.
          As i was saying the software they have Visual Studio 2022, as we write the code it gives a sort of drop-down with lots of possible choices for the code and we use TAB to complete or use the arrow keys and ENTER to chose what we want. The software also closes tags by it self and closes brackets.

          For example, i start writing <div> and as i finish the “>” it auto closes tag and the </div> magically appears on the line bellow, i just need to press enter and continue with whatever i need to do.

          Kinda hope i could explain my question.

          @Mark-Olson

          Thanks for the reply but the thing is i have already done that, and it still does not work.

          here check how i have the auto-complete.

          Auto Complete section image

          1 Reply Last reply Reply Quote 0
          • CoisesC
            Coises @TuiSilva
            last edited by

            @TuiSilva If this is happening in a new file, the problem is that Notepad++ doesn’t know it’s supposed to be HTML. You need to do one of two things:

            1. Save the file (even if it’s completely empty) with a .htm or .html extension.

            or

            1. Select HTML from the Language menu.
            TuiSilvaT 1 Reply Last reply Reply Quote 4
            • TuiSilvaT
              TuiSilva @Coises
              last edited by PeterJones

              @Coises said in Auto Complete feature is not working properly:

              @TuiSilva If this is happening in a new file, the problem is that Notepad++ doesn’t know it’s supposed to be HTML. You need to do one of two things:

              1. Save the file (even if it’s completely empty) with a .htm or .html extension.

              or

              1. Select HTML from the Language menu.

              Hi there thanks for the tip, but that still doesn’t happen, i mean drop-downs with possible stuff that i might want place on the code apear some have a sort of cube behind others don’t, but closing tags and brackets that doesn’t happen.

              Before ENTER

              Before Enter

              After ENTER

              After Enter

              i really don’t want to change to Visual code a a software a colegue of mine said to be several time better then Notepad++ but for some reason i really enjoy notepad++ and when i tried the VS Code it just didn’t sit right with me.

              rdipardoR PeterJonesP 2 Replies Last reply Reply Quote 0
              • rdipardoR
                rdipardo @TuiSilva
                last edited by

                @TuiSilva said in Auto Complete feature is not working properly:

                Hi there thanks for the tip, but that still doesn’t happen

                The trick is that you must not type the > of the start tag beforehand; the tag completion function depends on the regular expression <[^\\s>]*, which explicitly rules out the > character!

                html-autoc-demo.gif

                TuiSilvaT 1 Reply Last reply Reply Quote 2
                • PeterJonesP
                  PeterJones @TuiSilva
                  last edited by

                  @TuiSilva said in Auto Complete feature is not working properly:

                  Before ENTER

                  Before Enter

                  After ENTER

                  After Enter

                  You are trying to embed the imgur HTML page as an image. That doesn’t work. I fixed it the first time (and I will again), but you need to do it right. You either need to extract the URL to the image itself (it will end in .gif or .png), or easier, skip imgur all together, and just paste the image in your post.

                  1 Reply Last reply Reply Quote 0
                  • TuiSilvaT
                    TuiSilva @rdipardo
                    last edited by

                    @rdipardo said in Auto Complete feature is not working properly:

                    The trick is that you must not type the > of the start tag beforehand; [the tag completion function][0] depends on the regular expression <[^\\s>]*, which explicitly rules out the > character!

                    ohh okay i didn’t know that, i kinda have the habit of doing this <> 1st then write the tag <div>.

                    Still i went to try on a new file and a saved file and it still did not work.

                    @PeterJones said in Auto Complete feature is not working properly:

                    You are trying to embed the imgur HTML page as an image. That doesn’t work. I fixed it the first time (and I will again), but you need to do it right. You either need to extract the URL to the image itself (it will end in .gif or .png), or easier, skip imgur all together, and just paste the image in your post.

                    I am sry and appreciate the fix i was wondering why it was not showing the preview so that was the problem.

                    1 Reply Last reply Reply Quote 0
                    • mkupperM
                      mkupper @TuiSilva
                      last edited by

                      @TuiSilva After reading over the thread I would stick with doing all of your editing in Visual Studio 2022 for now. You are taking a class in Visual Studio 2022 and so should focus on becoming proficient in that. The goal is to become comfortable in Visual Studio 2022’s IDE, not to stay in the Notepad++ sandbox you are already comfortable with. This will also allow you to snap seamlessly between editing code, compiling to see what errors you get at that stage, and then stepping through the code in Visual Studio’s debugger, which also behaves like their code editor.

                      You could spend a lot of time figuring out how to do things in Notepad++ but what looks better on a resume, “Create and debug C#, HTML, CSS, and Java code using Visual Studio 2022” or “I can adjust the settings in Notepad++ so that editing HTML sort of looks like what I think it looks like in Visual Studio 2022?”

                      TuiSilvaT Alan KilbornA 2 Replies Last reply Reply Quote 0
                      • TuiSilvaT
                        TuiSilva @mkupper
                        last edited by TuiSilva

                        @mkupper Hi there thanks for your input.

                        you do have a point in what your saying.

                        Thing is i was not expecting to be having programming classes on the course i am taking yet i am having modules of 25/50 hours about programming.

                        What i want is get better at HTML, CSS and JavaScript coding, I don’t like or enjoy complicated stuff like the MVC project with C# i had.

                        By the end of the course i am taking what i want to be able to do is get better on image and video design/editing, Be able to create decente and cool looking site with HTML, CSS and JavaScript and maybe be able to do something in 3D with software like blender.

                        1 Reply Last reply Reply Quote 1
                        • Alan KilbornA
                          Alan Kilborn @mkupper
                          last edited by

                          @mkupper said in Auto Complete feature is not working properly:

                          but what looks better on a resume, “Create and debug C#, HTML, CSS, and Java code using Visual Studio 2022” or “I can adjust the settings in Notepad++ so that editing HTML sort of looks like what I think it looks like in Visual Studio 2022?”

                          On the one hand, if you are even considering such a generic statement for your resume, you’re probably already in trouble… :-)

                          On the other hand, if we forget the resume, it’s always good to have many tools in the toolbox, so knowing how to do things well with Vis Studio, Notepad++, (insert any one of a number of other things here), is of great benefit.

                          TuiSilvaT 1 Reply Last reply Reply Quote 2
                          • TuiSilvaT
                            TuiSilva @Alan Kilborn
                            last edited by

                            Well i decided to try a code with VS Code and see how i feel about it, the machines at the facility have VS Code in them so it might be a good ideia to test and practice on VS Code and leave notepad++ more a fun to mess around editor.

                            anyhow thanks for the help provided. i’m off to try and start reading trough W3schools JavaScript section that is the most difficult one for me right now.

                            Regards
                            ASilva

                            PS: If i have coding questions in the future can i ask on this community forum ?? for example tips and trick on how to be able to do a specific task for the modules final project ??

                            PeterJonesP 1 Reply Last reply Reply Quote 0
                            • PeterJonesP
                              PeterJones @TuiSilva
                              last edited by

                              @TuiSilva said in Auto Complete feature is not working properly:

                              If i have coding questions in the future can i ask on this community forum ??

                              Nope. This Forum is about Notepad++, not a generic help forum for programming.

                              TuiSilvaT 1 Reply Last reply Reply Quote 3
                              • TuiSilvaT
                                TuiSilva @PeterJones
                                last edited by

                                @PeterJones said in Auto Complete feature is not working properly:

                                Nope. This Forum is about Notepad++, not a generic help forum for programming.

                                OK, thanks for letting me know :)

                                1 Reply Last reply Reply Quote 0
                                • First post
                                  Last post
                                The Community of users of the Notepad++ text editor.
                                Powered by NodeBB | Contributors