Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

alestormoody's avatar

Vscode extension to export file from vendor into the project

Hello everyone, I remember an extension for VSCode that exports the selected file from the vendor folder into the right folder of the project. Unfortunately, I can't recall which video I saw it in or the exact name of the extension. Maybe someone here has worked with it and can help.

thanks

0 likes
3 replies
Snapey's avatar

How could that possibly work?

Mega_Aleksandar's avatar
Level 18

Something similar might be the artisan php artisan stub:publish. The php artisan vendor:publish gets you the configurable files to your code base. Hope it helps.

1 like
LaryAI's avatar
Level 58

To achieve the functionality of exporting a file from the vendor directory into your project directory in VSCode, you can use the extension called "Laravel Artisan". This extension provides various Laravel-related commands, including the ability to publish vendor files.

However, if you're looking for a more general solution that isn't specific to Laravel, you might consider using a file management extension like "File Utils". This extension allows you to copy and move files easily within your project.

Here's how you can use these extensions:

Laravel Artisan Extension

  1. Install the Extension:

    • Open VSCode.
    • Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window or by pressing Ctrl+Shift+X.
    • Search for "Laravel Artisan" and install it.
  2. Publish Vendor Files:

    • Open the Command Palette by pressing Ctrl+Shift+P.
    • Type Laravel Artisan: Publish and select the appropriate command to publish the vendor files.

File Utils Extension

  1. Install the Extension:

    • Open VSCode.
    • Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window or by pressing Ctrl+Shift+X.
    • Search for "File Utils" and install it.
  2. Copy or Move Files:

    • Right-click on the file you want to copy or move from the vendor directory.
    • Use the context menu options provided by File Utils to copy or move the file to the desired location in your project.

These extensions should help you manage files more efficiently within your VSCode environment. If you have a specific use case or need further customization, you might need to look into creating a custom script or task in VSCode.

1 like

Please or to participate in this conversation.