Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DRAFT: [PHP] Added autocomplete suggestions for PHP variables when they are declared with a namespace #6781

Draft
wants to merge 1 commit into
base: php-nb21-features
Choose a base branch
from

Conversation

MartynasJanu
Copy link

@MartynasJanu MartynasJanu commented Dec 3, 2023

A simple feature present in most other IDEs. When declaring a variable with a namespace as type (method parameters, class variables), we usually just name the variable as that namespace like FancyService $fancyService and similar. At least, I do, so I figured, this would be a nice addition to NetBeans. After using most other IDEs and getting back to NetBeans, I personally miss this feature.

As my first contribution, I think this would be a great place to start. The PR is work in progress, since I haven't added tests for it yet, but I wanted to see what people think about the functionality itself and maybe get some suggestions for improvement.

Some examples illustrated:

image

image

image

image

@MartynasJanu MartynasJanu changed the base branch from master to php-nb21-features December 3, 2023 23:49
@mbien mbien added the PHP [ci] enable extra PHP tests (php/php.editor) label Dec 3, 2023
@MartynasJanu MartynasJanu force-pushed the feature-php-namespaced-variable-name-suggestions branch from 2367c71 to b9513d3 Compare December 4, 2023 00:01
@MartynasJanu MartynasJanu changed the title DRAFT: Added autocomplete suggestions for PHP variables when they are declared with a namespace DRAFT: [PHP] Added autocomplete suggestions for PHP variables when they are declared with a namespace Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PHP [ci] enable extra PHP tests (php/php.editor)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants