This article describes how to build a PHP development environment. if you need a PHP development environment, refer to setting up a PHP development environment. The first step is
Download the development environment wampserver
Download sublime text 2
Sublime usage tips
1: install beautiful programming fonts
Http://pan.baidu.com/s/1xMex9 download "programming fonts-Yahei Las Hybrid ",
Double-click installation
2: decompress sublime to your program directory, such as D:/programe files/
3: ctrl + B open the browser. if you have installed apache and nginx, and assume that your www directory is D: \ www \\
Edit sublime Text/Data/Packages/User/open_broswer.py
The code is as follows:
Url_map = {
'D: \ www \ ': 'http: // localhost /',
}
[Note] D: \ www \ should point to the real directory of your localhost
Then !!
Click --> Preferences-> Key Bindings-> User
Add the following content to the interface that appears (if yes, you do not need to add it ):
The code is as follows:
[
{"Keys": ["ctrl + B"], "command": "open_browser "}
]
4: PHP syntax installation prompt (you can configure this step when learning PHP)
Toolbar: Preferences-> Package Settings-> SublimeLinter-> Settings-User
The code is as follows:
{"Sublimelinter": true,
"Sublimelinter_executable_map ":
{
"Php": "D :\\ amp \ php \ php.exe" replace the left-side address with the php.exe address.
}
}
4: sublime shortcut
Ctrl + l select the entire line (press and hold-continue to select downstream)
Ctrl + kk delete from cursor to end of line
Ctrl + shift + k delete the entire row
Ctrl + shift + d copy the entire row where the cursor is located and insert it before this row
Ctrl + j merge rows (multiple rows to be merged have been selected)
Ctrl + ku to uppercase
Ctrl + kl to lowercase
Ctrl + kl to lowercase
Ctrl + d (press and hold-continue to select the next same string)
Ctrl + m move the cursor to the start or end position in parentheses
Ctrl + shift + m select the content in the brackets (press and hold-continue to select the parent bracket)
Ctrl +/comment out the entire line (if the selected content is used, the effect is the same as that of "ctrl + shift +)
Ctrl + shift +/comment on selected content
Ctrl + space is automatically completed (win conflicts with system shortcut keys and needs to be modified)
Ctrl + z undo
Ctrl + y resume undo
Ctrl + shift + v paste and Auto Indent (written by other brothers, the auto indent of the tested win System is invalid)
Ctrl + m jump to the corresponding parentheses
Alt +. close the current tag
Ctrl + shift + a select the cursor position parent tag
Ctrl + shift + [collapse code
Ctrl + shift +] show code
Ctrl + kt fold property
Ctrl + k0 show all
Ctrl + u soft undo
Ctrl + t word interchange
Ctrl + enter
Ctrl + shift enter before inserting a row
Ctrl + k backspace delete from cursor to first line
Ctrl + shift + up and uplink interchange
Ctrl + shift + down swap with downstream
Shift + tab remove indentation
Tab indent
Sort F9 rows by a-z)
The above is all about building a PHP development environment. I hope you will like it.