Skip to content

PHP Autoindent is stupid #248227

Open
Open
@php4fan

Description

@php4fan

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.99.3
  • OS Version: Manjaro Linux

Image

The screenshot should speak for itself. Anyway:

Steps to Reproduce:

  1. In a new PHP file type this code:
<?php

$string = "Lorem ipsum" .
    "dolor sit " .
    "amet";
  1. Then hit Enter and try to type another line of code, such as:
$lalala = 123;

Expected behavior

The default indent after the ; should be none (more in general, the same indent as the that of the first line that started the statement that ends with the semicolon).

Observed behavior

See screenshot above.
It doesn't fix itself when you start typing nor even after you have typed the whole line.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions