Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ctf0/vscode-php-refactor
https://github.com/ctf0/vscode-php-refactor
Last synced: 26 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ctf0/vscode-php-refactor
- Owner: ctf0
- License: gpl-3.0
- Created: 2023-04-09T07:54:56.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-18T11:34:27.000Z (7 months ago)
- Last Synced: 2024-10-11T12:19:04.728Z (about 1 month ago)
- Language: TypeScript
- Size: 82 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Php Refactor
- the ext will detect when the cursor is at
- a constructor and add a property promotion (support inline & multiline)
- a method and add an argument
- otherwise, it will add the new property to the class scope
- add all magic methods (if not already in the file)
- (basic) extract selection to method/property "selection must be inside a method/function"
- new method/function will be added right after the selection method/function
- ext use ([intelephense](https://marketplace.visualstudio.com/items?itemName=bmewburn.vscode-intelephense-client)) to collect document symbols & generate php doc block
- support updating file/s namespace on `move/rename`
- glob exclude is populated from both `files.watcherExclude` & `search.exclude`
- make sure to run `composer dump-autoload` b4 deploying to update its files
- until [Issue #168825](https://github.com/microsoft/vscode/issues/168825) is resolved, we have to use regex for the lookup, if something is missing/incorrect, plz open a ticket.## Usage
- most/all of the features are accessed through code-actions `cmd+.`
## Notes
- Does NOT support multiple classes in a single document.