search
HomeDevelopment ToolssublimeHow to use the browser to open php files in sublime with one click

The following tutorial column of sublime will introduce to you how to use a browser to open php files in sublime with one click. I hope it will be helpful to friends in need!

How to use the browser to open php files in sublime with one click

Due to work needs, I need to use sublime to develop PHP. I found that every time I write the code, I need to manually enter the local host and resource path, which is too troublesome. After checking online, I summarized A method to use shortcut keys to run php files with one click

1. Search SideBarEnhancements on github and download it. Open the sublime software and select preferences->browse packages. Unzip the downloaded compressed package in the opened folder and remove the suffix (-st3)

2. Restart sublime

3. Use Sublime opens your php working path, right-click the folder in the working path--->project-->Edit preview URLs. Write the following code in the input window

{
"I:/phpworkplace/":{
"url_testing": "http://localhost:/",
"url_production": ""
}
}

Change I:/phpworkplace/ to your phpgong working path

4. Set shortcut keys preferences-->Package Settings->side Bar-> key Bindings-User. Just write the following code in the input window

[
{
"keys":["ctrl+r"],
"command":"side_bar_open_in_browser",
"args":{
"paths":[],
"type":"testing",
"browser":"chrome"
}
}
]

keys are followed by the shortcut keys

5. Once done, you only need to Press the shortcut key on the current file to open the php file with one click

The above is the detailed content of How to use the browser to open php files in sublime with one click. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:csdn. If there is any infringement, please contact admin@php.cn delete
Choosing Between Sublime Text and VS Code: Which Editor is Best?Choosing Between Sublime Text and VS Code: Which Editor is Best?May 01, 2025 am 12:03 AM

SublimeText is more suitable for users who work with large files and prefer lightweight editors, while VSCode is more suitable for users who need IDE capabilities and powerful scalability. 1.SublimeText is known for its speed and simplicity, and is suitable for handling large files. 2.VSCode is known for its scalability and Microsoft support, and is suitable for users who need IDE capabilities.

Sublime Text: An Introduction to the Code EditorSublime Text: An Introduction to the Code EditorApr 30, 2025 am 12:11 AM

SublimeText is a powerful and flexible code editor that is worthy of exploration by programmers. 1) It supports multiple selection and editing, allowing multiple locations to be modified at the same time. 2) The plug-in system is rich and extensible. 3) The basic usage is intuitive, and the advanced usage includes regular expressions and macros. 4) Common errors such as plug-in conflicts can be resolved by uninstalling or adjusting the configuration. 5) Performance optimization is achieved through management plug-ins and configuration files.

Sublime Text for Developers: A Guide to Using the EditorSublime Text for Developers: A Guide to Using the EditorApr 29, 2025 am 12:15 AM

SublimeText is popular among developers for its fast, powerful and rich plug-in ecosystem. 1. Multi-line editing and multi-cursor functions allow multiple text modifications at the same time. 2. Command panel and shortcut keys improve operation efficiency. 3. Use PackageControl management plug-in to meet various development needs. SublimeText is ideal for developers to improve programming efficiency.

Sublime Text: Exploring Pricing and AvailabilitySublime Text: Exploring Pricing and AvailabilityApr 28, 2025 am 12:03 AM

SublimeText is priced at $99 (starting from personal and commercial licenses), with a one-time purchase model that supports Windows, macOS and Linux: 1. A free trial version is available, and it is permanently used after purchase and is updated; 2. It can be downloaded from the official website or third-party store, but it is recommended to purchase from the official website to ensure flexibility.

Accessing Sublime Text: Exploring Your OptionsAccessing Sublime Text: Exploring Your OptionsApr 27, 2025 am 12:24 AM

You can get SublimeText by trialing for free, purchasing a license, or applying for an education license. 1) Free trial: No time limit, but you will prompt to purchase when saving the file. 2) Purchase a license: Pay $99 in one lump sum, get lifelong updates and support. 3) Education license: Students and educators can enjoy discounts and must verify their identity.

Sublime Text: Exploring Its CapabilitiesSublime Text: Exploring Its CapabilitiesApr 26, 2025 am 12:10 AM

SublimeText is a powerful text editor suitable for a variety of programming languages ​​and file formats. 1. Multiple selection and editing functions allow multiple locations to be modified at the same time to improve editing efficiency. 2. The command panel is accessed through shortcut keys and performs various operations, such as formatting code and managing plug-ins.

Sublime Text Evaluation: The Free to Try OptionSublime Text Evaluation: The Free to Try OptionApr 25, 2025 am 12:08 AM

SublimeText is available for free, but every once in a while, a purchase prompt pops up. 1) It supports multiple programming languages, has a simple interface and a powerful plug-in ecosystem. 2) Users can optimize the user experience by closing unnecessary plug-ins, regularly updating and using shortcut keys.

Sublime Text: From Beginners to ExpertsSublime Text: From Beginners to ExpertsApr 24, 2025 am 12:14 AM

SublimeText is suitable for beginners and experts. 1. Shortcut keys and command panels improve efficiency. 2. Package manager extension function. 3. Customize the details of the configuration file. 4. Multiple selection and editing functions are used to refactor code. 5. Search and replace function positioning and modify code. 6. Project management and version control integration facilitate project management.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

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

Hot Tools

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),