Table of Contents
PHP的环境搭建,PHP环境搭建
Home php教程 php手册 PHP的环境搭建,PHP环境搭建

PHP的环境搭建,PHP环境搭建

Jun 13, 2016 am 08:57 AM
php

PHP的环境搭建,PHP环境搭建

下载开发环境 wampserver

下载sublime text 2

sublime使用技巧

1:安装漂亮的编程字体
http://pan.baidu.com/s/1xMex9 下载"程序编写字体 – Yahei Consolas Hybrid",
双击安装

2:解压sublime到你的程序目录,如D:/programe files/

3:ctrl+b打开浏览器,如果你已经安装apache,nginx等,并假设你的www目录为D:\\www\\

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

[注意] D:\\www\\应为你的localhost指向的真实目录

然后!!
点击-->Preferences->Key Bindings->User
在出现的界面中,加入如下内容(如果已经有就不用再加了):
[
{ "keys": ["ctrl+b"], "command": "open_browser" }
]


4:安装PHP语法提示(可以到学PHP时配置此步)
工具栏:Preferences->Package Settings->SublimeLinter->Settings - User
{"sublimelinter": true,
    "sublimelinter_executable_map":
    {
         "php":"D:\\amp\\php\\php.exe" #把左边的地址替换为你实际的php.exe的地址
    }
}


4:sublime的快捷键
ctrl+l    选择整行(按住-继续选择下行)
ctrl+kk 从光标处删除至行尾
ctrl+shift+k 删除整行
ctrl+shift+d 复制光标所在整行,插入在该行之前
ctrl+j 合并行(已选择需要合并的多行时)
ctrl+ku 改为大写
ctrl+kl 改为小写
ctrl+kl 改为小写
ctrl+d 选词(按住-继续选择下个相同的字符串)
ctrl+m 光标移动至括号内开始或结束的位置
ctrl+shift+m 选择括号内的内容(按住-继续选择父括号)
ctrl+/ 注释整行(如已选择内容,同“ctrl+shift+/”效果)
ctrl+shift+/ 注释已选择内容
ctrl+space 自动完成(win与系统快捷键冲突,需修改)
ctrl+z 撤销
ctrl+y 恢复撤销
ctrl+shift+v 粘贴并自动缩进(其它兄弟写的,实测win系统自动缩进无效)
ctrl+m 光标跳至对应的括号
alt+. 闭合当前标签
ctrl+shift+a 选择光标位置父标签对儿
ctrl+shift+[折叠代码
ctrl+shift+] 展开代码
ctrl+kt 折叠属性
ctrl+k0 展开所有
ctrl+u 软撤销
ctrl+t 词互换
ctrl+enter 插入行后
ctrl+shift enter 插入行前
ctrl+k backspace 从光标处删除至行首
ctrl+shift+up 与上行互换
ctrl+shift+down 与下行互换
shift+tab 去除缩进
tab 缩进
F9 行排序(按a-z)

Statement of this Website
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

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

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian Dec 24, 2024 pm 04:42 PM

PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

CakePHP Date and Time CakePHP Date and Time Sep 10, 2024 pm 05:27 PM

To work with date and time in cakephp4, we are going to make use of the available FrozenTime class.

Discuss CakePHP Discuss CakePHP Sep 10, 2024 pm 05:28 PM

CakePHP is an open-source framework for PHP. It is intended to make developing, deploying and maintaining applications much easier. CakePHP is based on a MVC-like architecture that is both powerful and easy to grasp. Models, Views, and Controllers gu

CakePHP File upload CakePHP File upload Sep 10, 2024 pm 05:27 PM

To work on file upload we are going to use the form helper. Here, is an example for file upload.

CakePHP Creating Validators CakePHP Creating Validators Sep 10, 2024 pm 05:26 PM

Validator can be created by adding the following two lines in the controller.

CakePHP Logging CakePHP Logging Sep 10, 2024 pm 05:26 PM

Logging in CakePHP is a very easy task. You just have to use one function. You can log errors, exceptions, user activities, action taken by users, for any background process like cronjob. Logging data in CakePHP is easy. The log() function is provide

How To Set Up Visual Studio Code (VS Code) for PHP Development How To Set Up Visual Studio Code (VS Code) for PHP Development Dec 20, 2024 am 11:31 AM

Visual Studio Code, also known as VS Code, is a free source code editor — or integrated development environment (IDE) — available for all major operating systems. With a large collection of extensions for many programming languages, VS Code can be c

CakePHP Quick Guide CakePHP Quick Guide Sep 10, 2024 pm 05:27 PM

CakePHP is an open source MVC framework. It makes developing, deploying and maintaining applications much easier. CakePHP has a number of libraries to reduce the overload of most common tasks.

See all articles