Visual Code Studio extension to manage PHP class properties
It gets the property type from the docblock!
Automatically insert a constructor if it does not exist.
This extension contributes the following settings:
phpAddProperty.property.visibility.choose
: Specifies whether to choose property visibility when insertingphpAddProperty.property.visibility.default
: Specifies the default property visibilityphpAddProperty.property.stopToImport
: Specifies whether to stop after typing the type to refer to an external fully qualified name with an alias or importingphpAddProperty.property.docblock.add
: Specifies whether to add a docblock @var type to the propertyphpAddProperty.property.docblock.multiline
: Specifies whether to use a multiline docblockphpAddProperty.property.docblock.withParameter
: Specifies whether to add the docblock @var type to the property and the constructor parameter type at the same timephpAddProperty.property.docblock.stopToImport
: Specifies whether to stop after typing the type to refer to an external fully qualified name with an alias or importingphpAddProperty.property.types
: Specifies whether to enable PHP 7.4+ typed properties More infophpAddProperty.constructor.docblock.enable
: Specifies whether to add/update the docblock to the constructorphpAddProperty.constructor.docblock.withParameter
: Specifies whether to add the docblock @param type together with the constructor parameter typephpAddProperty.constructor.docblock.stopToImport
: Specifies whether to stop after typing the @param type to refer to an external fully qualified name with an alias or importingphpAddProperty.constructor.docblock.stopForDescription
: Specifies whether to stop after typing the @var type to add a descriptionphpAddProperty.constructor.visibility.choose
: Specifies whether to choose constructor visibility when insertingphpAddProperty.constructor.visibility.default
: Specifies the default constructor visibilityphpAddProperty.constructor.breakIntoMultilineIfLengthExceeded.enabled
: Specifies whether to break the constructor into multiple lines if the given line length is exceededphpAddProperty.constructor.breakIntoMultilineIfLengthExceeded.maxLineLength
: Specifies the maximum line length before using a multiline constructorphpAddProperty.showMessagesOnStatusBar
: Specifies whether to show messages on status bar instead of notification boxphpAddProperty.contextMenuOptions.enable
: Specifies whether to show the context menu optionsphpAddProperty.contextMenuOptions.addProperty
: Specifies whether to show the add property command in the context menu optionsphpAddProperty.contextMenuOptions.appendProperty
: Specifies whether to show the append property command in the context menu optionsphpAddProperty.contextMenuOptions.renameProperty
: Specifies whether to show the rename property command in the context menu optionsphpAddProperty.contextMenuOptions.changePropertyType
: Specifies whether to show the change property type command in the context menu optionsphpAddProperty.contextMenuOptions.removeProperty
: Specifies whether to show the remove property command in the context menu optionsphpAddProperty.contextMenuOptions.breakConstructorIntoMultiline
: Specifies whether to show the break constructor into multiline command in the context menu optionsphpAddProperty.showVersionUpdates
: Specifies whether to show What's New after upgrading to a new version