How to build PHP development environment _php Instance

Source: Internet
Author: User
Tags php development environment
The first step in building a PHP development environment is to

Download development Environment Wampserver

Download Sublime Text 2

Sublime Tips for use

1: Install beautiful programming fonts
http://pan.baidu.com/s/1xMex9 Download "Program writing font –yahei Consolas Hybrid",
Double-click Install

2: Unzip the sublime to your program directory, such as D:/programe files/

3:ctrl+b Open the browser if you have installed Apache,nginx etc, and assume your www directory is d:\\www\\

Edit Sublime text/data/packages/user/open_broswer.py
Copy the Code code as follows:
Url_map = {
' d:\\www\\ ': ' http://localhost/',
}

Note D:\\www\\ should be the real directory that your localhost points to

And then!!
Click-->preferences->key bindings->user
In the interface that appears, add the following (if you already have one, you don't have to add it):
Copy the Code code as follows:
[
{"Keys": ["Ctrl+b"], "command": "Open_browser"}
]

4: Install PHP syntax hints (you can configure this step when learning PHP)
Toolbar: preferences->package settings->sublimelinter-> Settings-user
Copy Code code is as follows:
{"Sublimelinter": True,
"Sublimelinter_executable_map":
{
"php": "D:\\amp\\php\\php.exe" #把左边的地址替换为你实际的php the address of the. exe
}
}

Shortcut keys for 4:sublime
Ctrl+l Select Entire row (press and hold-continue to select the downstream)
CTRL+KK Delete from cursor to end of line
Ctrl+shift+k Delete an entire row
Ctrl+shift+d the entire line where the cursor is copied, before inserting the line
Ctrl+j merge rows (multiple rows that need to be merged are selected)
Ctrl+ku Change to uppercase
CTRL+KL Change to lowercase
CTRL+KL Change to lowercase
Ctrl+d Word selection (press and hold-continue to select the next same string)
Ctrl+m cursor to start or end position within parentheses
Ctrl+shift+m Select the contents in parentheses (press and hold-continue to select the parent bracket)
ctrl+/Comment Entire line (if selected, same as "ctrl+shift+/" effect)
ctrl+shift+/Comment Selected content
Ctrl+space Auto-complete (Win and System shortcut key conflict, need to modify)
CTRL + Z Undo
Ctrl+y Recovery undo
Ctrl+shift+v Paste and Auto indent (other brothers write, measured win system automatically indentation invalid)
Ctrl+m cursor jumps to the corresponding parentheses
ALT +. Close the current label
Ctrl+shift+a Select the cursor position parent tag pair child
Ctrl+shift+[Folding Code
Ctrl+shift+] Unwind code
Ctrl+kt Collapsing properties
Ctrl+k0 Expand All
Ctrl+u Soft Undo
Ctrl+t Word Exchange
Ctrl+enter after inserting rows
Ctrl+shift enter before inserting a row
Ctrl+k BACKSPACE Delete from cursor to beginning of line
Ctrl+shift+up and Upstream Interchange
Ctrl+shift+down and Downlink Interchange
Shift+tab removing indents
tab indent
F9 row sort (by A-Z)

The above is to build a PHP development environment of all the introduction, I hope you like.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.