Commit Graph

25 Commits

Author SHA1 Message Date
RedCMD
8d2287f6f7 Fix php indenting #248229 (#258016)
* Fix php indenting

* Simplify PHP indentationRules
2026-01-05 10:19:19 +00:00
bilogic
c50bca2e13 also recognize // #region ... as valid markers (#278943)
Co-authored-by: Benjamin Pasero <benjamin.pasero@gmail.com>
2025-11-26 07:21:41 +00:00
Stephen Sigwart
7c43b02d62 Update indentation for PHP, JS, and TS (#251465)
* Update indentation for PHP, JS, and TS.

Addresses https://github.com/microsoft/vscode/issues/136592

- For PHP, auto-indent after `if`, `elseif`, `else if`, `while`, `for` and `foreach`. This also fixes an issue where hitting Enter on a blank line below a single line `if` (or other) results in an extra tab.
- For PHP, extra dot after `*/` and blank line.
- For JS/TS, auto-indent for `else` to be consistent with handling of `if` statements

* polish

---------

Co-authored-by: Aiday Marlen Kyzy <amarlenkyzy@microsoft.com>
2025-06-17 09:41:12 +00:00
Aiday Marlen Kyzy
c0d25ffb56 Performance regression: revert "Ignoring double slashes inside of strings" (#235742)
Revert "onEnter Indentation Rules: Ignoring double slashes inside of strings …"

This reverts commit 21c52a4a3a.
2024-12-10 16:49:07 +01:00
Aiday Marlen Kyzy
21c52a4a3a onEnter Indentation Rules: Ignoring double slashes inside of strings (#235712)
ignoring double slashes inside of strings
2024-12-10 11:02:51 +01:00
Aiday Marlen Kyzy
359ec5270a Add new line comment when pressing Enter from within line comment for languages that use double slash for line comment (#235407)
* add decrease and increase indent patterns for cpp

* adding new line with line comment on next line from within languages that use double slash for line comment
2024-12-06 11:51:50 +01:00
Stephen Sigwart
16f501ee33 Fix single line if/else and loop indentation 2022-06-04 23:55:58 -04:00
Henning Dieterichs
dcf81c6265 Removes g flag from wordPatterns. 2021-05-31 19:47:57 +02:00
Henning Dieterichs
a1af8aa651 Refactors calls to languages.setLanguageConfiguration to declarative descriptions in language-configuration.json. This fixes #98621. 2021-05-17 09:12:01 +02:00
Rob Lourens
c22fad1fa4 Fix php autoindent with ])
Fix #122899
2021-05-04 15:06:52 -07:00
Connor Peet
f4e49a5f3a php: revert break deindent behavior
Fixes https://github.com/microsoft/vscode/issues/104836
2020-11-04 15:40:46 -08:00
Connor Peet
78fd1e5ec2 php - fix break statement not reducing indent level
Fixes https://github.com/microsoft/vscode/issues/57964
2019-10-11 13:36:36 -07:00
Connor Peet
b6b011b294 php - increment indentation for inline php tags
Fixes https://github.com/microsoft/vscode/issues/44137
2019-10-11 11:56:32 -07:00
Connor Peet
867bcaee0d php - fix identation drifting on empty single-long blocks
Fixes https://github.com/microsoft/vscode/issues/34424
2019-10-11 11:22:13 -07:00
Rob Lourens
c0bd994bc7 Fix PHP indentation rule for 'case'
Fix #81107
2019-10-09 18:30:30 -07:00
ranolfi
d5a8ffc032 Automatic wrapping with `` (backticks) for PHP
Related to #49188
2018-05-04 05:39:28 -03:00
Rob Lourens
a1b79983ac Fix #36115 - add #region folding for PHP 2017-10-21 23:32:43 -07:00
Rob Lourens
7818862ede Fix hygiene from mergetool on github.com 2017-09-03 22:38:55 -07:00
Rob Lourens
ddb6d23841 Merge branch 'master' into feature/php-commenting 2017-09-03 21:28:19 -07:00
rebornix
a204dc6133 Fix #31838. Fix php indentation rules regression 2017-08-01 16:47:53 -07:00
Jens Hausdorf
519811c487 Improve php language config 2017-08-01 00:21:06 +02:00
rebornix
77ff4e0870 Indent Rules for PHP 2017-07-26 11:09:56 -07:00
rebornix
e49ae72a37 Fix #8850. Do not auto close single paren inside comments and string when editing PHP 2017-07-14 11:41:45 -07:00
Melvin Lee
d0957daa05 Improve comment indenting behaviour for PHP 2016-12-19 19:43:44 +08:00
Martin Aeschlimann
354a014029 Migrate PHP to language-configuration 2016-07-21 19:57:02 +02:00