Navigate to the top menu and click on > Manage Extensions (or Tools > PHP Tools depending on your version). Locate the PHP Tools for Visual Studio section. Click on License or Register .
What (2019, 2022, etc.) are you running? php tools for visual studio license key