Auto Complete feature is not working properly
-
Hi there i am a relative old user of Notepad++ how ever only recently i have started doing more serious and laborious works due to a course i am taking.
I am now in a predicament were i kinda need the notepad++ auto complete or intelisence whatever the feature is called, to be able to close the tags for me and give me tips on what i might wanna do next, to speed up a bit more my coding progress.
however after searching for a bit a browsing through the from i reached the conclusion that i need to got o preferences -> Auto Complete -> check mark what i wanted
However even after picking everything the damn feature does not work, am i still doing something wrong ??
i would have posted a image link but apparently i need reputation to do that :)
Regards ASilva
-
@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.
-
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 theAuto-Completion
tab from the form that pops up, then selecthtml/xml close tag
near the bottom of the dialog. See below.Once you turn on that setting, if you’re in an
XML
orHTML
file, when you input<foo>
, Notepad++ will automatically insert the closing</foo>
tag. -
@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.
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.
-
@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:
- Save the file (even if it’s completely empty) with a .htm or .html extension.
or
- Select HTML from the Language menu.
-
@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:
- Save the file (even if it’s completely empty) with a .htm or .html extension.
or
- 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
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.
-
@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! -
@TuiSilva said in Auto Complete feature is not working properly:
Before 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.
-
@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.
-
@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?”
-
@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.
-
@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.
-
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
ASilvaPS: 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 ??
-
@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.
-
@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 :)