Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>PHP FileNew to Visual Studio Code? Get it now.
PHP File

PHP File

Brain Code

|
2,893 installs
| (0) | Free
Extension that adds naive IDE-like file creation.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PHP File

Extension that adds naive IDE-like file creation.

vscode-menu

Extension Settings

This extension contributes the following settings:

// Template for PHP Class
"php-file.templates.PHPClass": [
    "<?php",
    "",
    "namespace {namespace};",
    "",
    "{use}",
    "",
    "class {name} {extends} {implements}",
    "{",
    "}"
],
// Template for PHP Interface
"php-file.templates.PHPInterface": [
    "<?php",
    "",
    "namespace {namespace};",
    "",
    "{use}",
    "",
    "interface {name} {implements}",
    "{",
    "}"
],
// Template for PHP Trait
"php-file.templates.PHPTrait": [
    "<?php",
    "",
    "namespace {namespace};",
    "",
    "trait {name}",
    "{",
    "}"
],
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft