Artisan Base
Editor utilities that keep Laravel project workspaces consistent.
Ctrl+Alt+L applies the bundled workspace standards to the open project:
- Files missing from the project are added (with any needed directories).
- Files that already match are left untouched (mtime preserved).
- Files that differ are reported one by one, with the choice
Replace / Keep / Show diff / Replace all / Keep all.
Show diff opens the built-in diff editor.
- Files are never removed from the project.
A summary (+N created, ~K replaced, ↩S kept, =M identical) is shown as a
notification; the per-file detail goes to the Artisan Base output channel.
Usage
- Open a Laravel project folder.
- Press
Ctrl+Alt+L, or run Artisan Base: Apply Workspace Standards
from the command palette.
- Review the report and answer each difference prompt.
Behaviour details
- If the workspace root contains no
artisan file, the extension confirms
before doing anything.
- With several workspace folders, it first asks which one to target.
Esc at a difference prompt leaves all remaining files untouched.
- The extension refuses to operate on its own installation folder.
Standards bundle
The bundled template/ directory holds the reference file set the extension
compares against: a Laravel 10 code layer (app/, config/, routes/), a
Bootstrap-based resources/views/layout.blade.php, and local assets
(Bootstrap CSS/JS, PT Sans fonts). Dependency manifests and vendor/ are not
part of it — those belong to composer create-project.
Paths in template/ mirror the Laravel project root, so
template/config/database.php corresponds to config/database.php.
To build a variant with your own reference set:
npm install
npm run package # produces artisan-base-<version>.vsix
Configuration
No settings. No telemetry. No network access: the extension only reads its own
template/ directory and writes into the workspace you chose.
License
MIT — see the LICENSE file shipped in the extension package. Bundled fonts:
PT Sans © ParaType, SIL OFL 1.1 (template/public/fonts/OFL.txt).