Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML editing features don't work well in PHP files #62077

Open
OhligerJ opened this issue Oct 29, 2018 · 5 comments
Open

HTML editing features don't work well in PHP files #62077

OhligerJ opened this issue Oct 29, 2018 · 5 comments
Assignees
Labels
feature-request Request for new features or functionality php PHP support issues
Milestone

Comments

@OhligerJ
Copy link

  • VSCode Version: Version: 1.28.2 (user setup)
    Commit: 7f3ce96
    Date: 2018-10-17T00:23:51.859Z
    Electron: 2.0.9
    Chrome: 61.0.3163.100
    Node.js: 8.9.3
    V8: 6.1.534.41
    Architecture: x64
  • OS Version: Windows 7

Steps to Reproduce:

  1. Create new PHP file
  2. Type in div.class, hit tab, hit enter

Current Solution:

Change file type to HTML, and then back to PHP

Proposed solution:

In a file type where HTML tab-completion works, HTML auto-indenting should also work

Does this issue occur when all extensions are disabled?: Quick Google search did not provide clear instructions on how to perform this in Windows.

@vscodebot vscodebot bot added the php PHP support issues label Oct 29, 2018
@roblourens roblourens added the feature-request Request for new features or functionality label Oct 29, 2018
@AeonFr
Copy link

AeonFr commented May 18, 2019

I was just about to report the same issue.

The tab autocompletion on PHP is so buggy it's practically useless to have it on.

Here are two videos that show my struggles trying to do basic things. VSCode is not only not doing what it's supposed to do, it's also completely breaking everything else in the process.

ezgif-3-606211f008e1

ezgif-3-0e8c7497c525

Edit: I have experienced this issue both in Windows and Mac, and hadn't found any solution appart from disabling editor.tabCompletion

Edit 2: This has the "feature request" tag. Well I rather consider it a bug, given the feature exists, but simply doesn't work as intended.

@TomS-
Copy link

TomS- commented Jul 4, 2019

This is definitely a bug, the fact that it's been around for so long is a little concerning. I've been quite about this for a while. But it's really starting to annoy me. It's a shame because VSCode is amazing code editor otherwise.

@mbekir705-pnc
Copy link

in september 2020 still same issue is exist. Isn't there any solution, really?

@asccc
Copy link

asccc commented Sep 30, 2020

@mbekir705-pnc
Using "editor.autoIndent": "advanced", instead of "editor.autoIndent": "full", helped as a workaround.
Its not perfect but at least you'll be able to close HTML tags without re-indenting them every time.

@saminton
Copy link

saminton commented Jun 4, 2021

#103147 reported this a while ago and got a rather unsatisfying response... I have yet to find a solution.

@roblourens roblourens changed the title HTML Auto-indent Does Not Work If Original File Type is PHP HTML editing features don't work well in PHP files Dec 15, 2023
@roblourens roblourens reopened this Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality php PHP support issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants