Home  >  Article  >  Backend Development  >  PHP environment setup, PHP environment setup_PHP tutorial

PHP environment setup, PHP environment setup_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 09:45:41853browse

PHP environment construction, PHP environment construction

Download the development environment wampserver

Download sublime text 2

Tips for using sublime

1: Install beautiful programming fonts
http://pan.baidu.com/s/1xMex9 Download "Programming Font – Yahei Consolas Hybrid ",
Double-click to install

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

3: ctrl b to open the browser, if you have installed apache, nginx, etc., and assume that your www directory is D:\www\

edit sublime Text/Data/Packages/User/open_broswer.py
url_map = {
'D:\www\' : 'http://localhost/',
}

[Note] D:\www\ should be the real directory pointed to by your localhost

Then!!
Click -->Preferences->Key Bindings->User
In the interface that appears, add the following content (no need to add if it already exists):
[
{ "keys": [ "ctrl b"], "command": "open_browser" }
]


4: Install PHP syntax prompts (you can configure this step when learning PHP)
Toolbar: Preferences ->Package Settings->SublimeLinter->Settings - User
{"sublimelinter": true,
"sublimelinter_executable_map":
{
"php":"D:\amp\php \php.exe" #Replace the address on the left with the address of your actual php.exe
}
}


4: Sublime shortcut key
ctrl l Select the entire Line (press and hold - continue to select the next line)
ctrl kk Delete from the cursor to the end of the line
ctrl shift k Delete the entire line
ctrl shift d Copy the entire line where the cursor is and insert it before the line
ctrl j Merge lines (when multiple lines to be merged have been selected)
ctrl ku Change to uppercase
ctrl kl Change to lowercase
ctrl kl Change to lowercase
ctrl d Select words (press and hold - continue Select the next identical string)
ctrl m Move the cursor to the beginning or end of the brackets
ctrl shift m Select the content within the brackets (press and hold - continue to select the parent bracket)
ctrl / Comment the entire Line (if the content has been selected, the same effect as "ctrl shift /")
ctrl shift / annotate the selected content
ctrl space auto-complete (win conflicts with system shortcut keys and needs to be modified)
ctrl z undo
ctrl y Undo
ctrl shift v Paste and automatically indent (written by other brothers, the actual automatic indentation of win system is invalid)
ctrl m The cursor jumps to the corresponding bracket
alt. Close the current label
ctrl shift a Select the parent label pair at the cursor position
ctrl shift [Collapse code
ctrl shift ] Expand code
ctrl kt Collapse attributes
ctrl k0 Expand all
ctrl u Soft undo
ctrl t word swap
ctrl enter after inserting the line
ctrl shift enter before inserting the line
ctrl k backspace delete from the cursor to the beginning of the line
ctrl shift up swap with the upper line
ctrl shift down Swap with downline
shift tab remove indent
tab indent
F9 line sort (press a-z)

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1040166.htmlTechArticlePHP environment construction, PHP environment construction download development environment wampserver download sublime text 2 sublime usage tips 1: install beautiful Programming font http://pan.baidu.com/s/1xMex9 Download "Programming...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn