VS Code: Pug autocomplete class names - visual-studio-code

I searched the web today to find the answer, but I couldn't find any solution to this problem.
I use BEM in all of my dev projects, so I deal with class names pretty often and their names repeat a lot. In Atom when I wrote Pug code it would suggest to me an already used class name in this document. It was very useful and simple feature.
I moved to VS Code not so long ago, but I couldn't find solution to make this work. Is there any extension or other way to make this work?

I added this line of code to settings:
"emmet.showExpandedAbbreviation": "never"
And it worked like a charm.

"emmet.includeLanguages": {
"html": "pug"
}

Related

How do i publish a vs code extension with space

I have been working on a vs code extension and want to publish it with spaces in the name. I saw other extensions have them, but I can't figure out how.
As #Mark said, the displayName in the package.json can have spaces. I never thought it would be this simple.

Why does my ':' show "Windows only Oledll" in the intellisense? [duplicate]

While writing Python code on VS Code, it is showing suggestions like:
windll Windows only: Creates ()
I have tried to see if this was coming from snippet extension I might have installed but I don't think I have any... can anyone shine a light on why I am getting his code completion nonsense?
I had this same issue, every time :, ., def, or if is typed, there's annoying suggestions that don't make sense. I found out it's the Python Extended extension that's responsible for this. It seems to be reported on it's GitHub issues page, but for now I would disable the extension as it doesn't seem to be working at all for me. I recommend PyLance as a replacement.
It's the extension problem.
You have installed the extension named: Python Extended inside your vs code and you will need to uninstall it.
It works well on my editor after uninstalling this extension.

How do I fix intellisense in Vs code?

I have tried finding answers but none are helping so far.
It seems my VS code is not running correctly.
It does not autocomplete, does not show if something is missing a reference like controllerbase in this case, although it breaks the build:
It also does not pick up existing items to select while typing at all.
I have re installed VS code and of course restarted it.
Any help is appreciated.
Thanks
You most to be sure that only have the plugins that you need some times many plugins can create bad behavior in vs code intellisense

Multiple files for modularizing vscode settings

I was wondering if there's a way to import other json files into your vscode settings.json.
I thought for sure I had found a way to do this in the past but I forgot to attempt to implement it and now I can't find a way to do it.
For example, let's say I have a bunch of editor settings, but then I also have color custommizations as well as certain extension settings.
What I'd like is something like an editor-settings.json and a token-colors.json file that I can include in my main settings.json file with something like
{
"source": [
"./editor-settings.json",
"./token-colors.json"
]
}
Hopefully I've explained well what I'm looking for and someone can help me find it.
Thanks for taking the time to read and respond. :)

Automatically formatting HTML within PHP with VSCode?

I tried Intelephense and dozens of other extensions and settings but NONE of them achieved what I'm after. What I prioritize is automatic tag close and automatic indent... most of others VSC functionalities for HTML would be great too, like css classes or files paths suggestions, but what I really need is this 'basic' automatic format...
I'm sorry for this question, I know it's been done and answered before, it's just that I can't get my VSC to correctly work with HTML when mixed with PHP, and I've been trying for months now... Read everything I've found on Google, searched about it here and on Reddit, but wasn't able to reproduce any of the solutions, or better saying, none of them worked for me.
Could anyone give me some guidance?
Luckily I felt the same way as you so I just decided to go ahead and hammer out a solution to this very annoying problem with a VScode extension that doesn't register itself as a "formatting" extension I format the HTML onBeforeSave so you can still register a PHP formatting extension so between the two it gets the whole file. I use js-beautify so you can just use all the native HTML formatting settings in VSCode already.
Format HTML in PHP on the VSCode Extension Marketplace.