Sublime Text Config for Laravel
The Original Post is here
Below is the configuration I use when developing Laravel applications with Sublime Text editor.
PLUGINS
- git
- git blame
- git gutter
- sidebar menu advanced
- syncedsidebar
- lsp
- lsp intelephense
- lsp bash
- lsp dockerfile
- lsp eslint
- lsp volar
- vue syntax highlight
- lsp svelte
- lsp tailwindcss
- terminus
- fileicons
- a file icon
- codeium
- shell exec
To install plugins, open the Command Palette with cmd shift p / alt shift p and select "Install Plugin."
LSP
The LSP plugins require Node.js, so the first step is to install Node.js.
Installation guide: https://github.com/nvm-sh/nvm#installing-and-updating
Usage guide: https://github.com/nvm-sh/nvm#usage
Intelephense
After installation, run the following command:
npm -g i intelephense
Open the menu LSP > Servers > LSP-intelephense under "Package Settings" and configure as follows:
{ "enabled": true, "command": [ "intelephense", "--stdio", ], "scopes": ["source.php", "embedding.php"], "syntaxes": ["Packages/PHP/PHP.sublime-syntax"], "languageId": "php", "initializationOptions": { "clearCache": false, "licenceKey": "", }, }
Open the Command Palette and select Enable LSP: Enable Language Server.
Preferences Settings
Open with cmd , / alt ,:
{ "ignored_packages": [ "Git", "Git blame", "GitGutter", "Vintage", ], "save_on_focus_lost": true, "shell_exec_executable": "/bin/zsh", "shell_exec_output": "panel", "shell_exec_output_word_wrap": false }
Key Bindings
[ { "command": "lsp_symbol_definition", "args": { "side_by_side": false }, "keys": [ "super+enter" ], "context": [ { "key": "lsp.session_with_capability", "operator": "equal", "operand": "definitionProvider" }, { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] }, { "command": "lsp_format_document", "keys": [ "super+shift+'" ], "context": [ { "key": "lsp.session_with_capability", "operator": "equal", "operand": "documentFormattingProvider | documentRangeFormattingProvider" } ] }, { "keys": ["super+b"], "command": "toggle_side_bar" }, { "keys": ["super+t"], "command": "toggle_terminus_panel" }, { "keys": ["super+shift+o"], "command": "close_all" }, { "keys": ["super+shift+t"], "caption": "Terminus: Open Default Shell in Split Tab", "command": "terminus_open", "args": { "post_window_hooks": [ ["carry_file_to_pane", {"direction": "down"}] ] } }, { "keys": ["super+shift+;"], "command": "shell_exec_run", "args": { "format": "./vendor/bin/pint" } } ]
Mouse Bindings
[ { "button": "button1", "count": 1, "modifiers": ["super"], "press_command": "drag_select", "command": "lsp_symbol_definition" }, { "button": "button1", "count": 1, "modifiers": ["ctrl"], "press_command": "drag_select", "press_args": {"additive": true} } ]
Canonical URL
For more detailed information, visit the original post on my blog.
The above is the detailed content of Sublime Text Config for Laravel. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Alipay PHP...

Session hijacking can be achieved through the following steps: 1. Obtain the session ID, 2. Use the session ID, 3. Keep the session active. The methods to prevent session hijacking in PHP include: 1. Use the session_regenerate_id() function to regenerate the session ID, 2. Store session data through the database, 3. Ensure that all session data is transmitted through HTTPS.

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

How to debug CLI mode in PHPStorm? When developing with PHPStorm, sometimes we need to debug PHP in command line interface (CLI) mode...

The application of SOLID principle in PHP development includes: 1. Single responsibility principle (SRP): Each class is responsible for only one function. 2. Open and close principle (OCP): Changes are achieved through extension rather than modification. 3. Lisch's Substitution Principle (LSP): Subclasses can replace base classes without affecting program accuracy. 4. Interface isolation principle (ISP): Use fine-grained interfaces to avoid dependencies and unused methods. 5. Dependency inversion principle (DIP): High and low-level modules rely on abstraction and are implemented through dependency injection.

How to automatically set the permissions of unixsocket after the system restarts. Every time the system restarts, we need to execute the following command to modify the permissions of unixsocket: sudo...

Static binding (static::) implements late static binding (LSB) in PHP, allowing calling classes to be referenced in static contexts rather than defining classes. 1) The parsing process is performed at runtime, 2) Look up the call class in the inheritance relationship, 3) It may bring performance overhead.

Article discusses essential security features in frameworks to protect against vulnerabilities, including input validation, authentication, and regular updates.
