Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>PHP ToggleNew to Visual Studio Code? Get it now.
PHP Toggle

PHP Toggle

Jake Hope

|
429 installs
| (0) | Free
Toggle command for PHP tags
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VSCode PHP Toggle

This extensions provides toggle command for PHP tags in VSCode.

Command:

php-toggle.toggleTags

Features

  • Cycles through tags <?php ?> and <?= ?>
  • Multiline support
  • Works in php, html.php

Keyboard shortcuts

MacOS: Command+Shift+/

Windows & Linux: Ctrl+Shift+/

To customize keyboard shortcuts:

{
  "command": "php-toggle.toggleTags",
  "key": "ctrl+shift+/",
  "when": "editorTextFocus && editorLangId =~ /php/"
},

Credits

Inspired by @kirillplatonov plugin vscode-erb-toggle.

License

This extension is licensed under the MIT License.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft