Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Php Copy ReferenceNew to Visual Studio Code? Get it now.
Php Copy Reference

Php Copy Reference

MDOQ

|
1,843 installs
| (1) | Free
Adds "Copy reference" to context menu
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PHP Copy Reference

Latest Release InstallsRating

This extension adds the "Copy Reference" item to the editor context menu. The refence is copied to the users clipboard.

Features

Copy Reference

Requirements

You need a PHP language server extension installed such as:

  • PHP IntelliSense
  • PHP Intelephense

Extension Settings

No settings at present.

Known Issues

Unable to copy embeded reference

Example code A.php

Class A {
    const FOO = 'bar';
}

B.php

Class B {
    public function anything()
    {
        $variable = \A::FOO;
    }
}

In this example:

  • You can select FOO within class A and get a the reference: \A::FOO
  • You can't select FOO within class B, as \A::FOO isn't returned as a Symbol within the document.

Reference is to file not to symbol

If you select a valid symbol within the document, but the reference is a file path. This may be because the language server hasn't finished indexing. Please wait a minute or so (untill the index has finished) and try again. If the issue still persists please raise an issue.

Release Notes

See CHANGLOG.md

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