ZendStudio13.5常用配置(设置语法高亮仿EditPlus)

 PHP新人初次用Eclipse编辑代码感觉原始设置太丑,所以花了点时间重新鼓捣一次,提供各位同学参考

 

预备:设置Workspace工作空间路径(我使用wamp集成包所以直接设置到wamp下的www目录中)

 

第一步:设置字体

Preference - 搜 Text Font 使用字体 Courier New 常规 大小(10)

Window->Preferences->General->Workspace ->Text file encoding,选择utf-8;

Window->Preferences->General->keys ,搜索word complete改为 Alt+. 修改自动补全快捷键(可选) 

 

第二步:设置中文手册

Preference - PHP - Manual - New 

1.设置地址名为PHP(local),选择第三个本地chm手册,类型选择html

2.指定地址后,设置为default默认选项(手册名字最好不要有汉字防止莫名问题发生)

 

第三步:配置语法高亮

Preference - PHP - Editor - Syntax Coloring (可以点击下面Simple text直接设置字体样式和颜色)

元素名称     中译      基本颜色(是个8x6表格设为第一象限,坐标以x为横向,以y为纵向,左下角黑色为1,1)

String          字符串      粉色(x=8,y=5)

Functions    函数        红色(x=1,y=5)

Method       方法        红色(x=1,y=5)

Variable      变量        蓝色(x=5,y=3)

Classes      类名        黑色(x=1,y=1)

Parameter Variable 参数变量去掉下划线 天蓝(x=6,y=6)

single-line comment   单行注释     绿色(x=4,y=3)

-----以下为可选设置------------------------------------------------

Static method   静态方法   天蓝(x=6,y=6) 

Static field    静态属性   天蓝(x=6,y=6) 

Superglobal Variable  全局变量  红色(x=1,y=5)  

 

第四步:设置PHP版本(可以设置多版本方便来回切换)

Preference - PHP - PHP Executables

1.设置版本名称,选择php.exe文件和php.ini文件路径

2.选择XDebug作为调试器

 

第五步:设置PHP Server

Preference - PHP - Server

1.指定ServerName(比如Apache2.4.9),BaseUrl指定为http://localhost (此处不要有后面的斜杠/否则会报错)

2.Document Root指定为www目录,Debugger选择XDebug

 

第六步:设置Code Template(可选)

Preference - PHP - Code Style - Code Template - Code - html 4.01 代码模板如下

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 

"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=${encoding}">

<link href="" rel="stylesheet" type="text/css" />

<script type="text/javascript" src=""></script>

<title>Main Page</title>

<!-- Created on ${date} ${time} -->

</head>

<body>

${cursor}

</body>

</html>
 

第七步:修改文本最大行宽度

Preference - PHP - Code Style - Formatter ,以PHP Conventions为模板新建,自定义文件名myProfile,点保存

1.点Line Wrap标签,修改Maximum Line Width为130,点apply保存,OK退出

 

第八步:加入对tpl文件的支持

1.Preference - General - Content Types右侧Text,在PHP Content Type下添加.tpl文件类型

2.Preference - General - Editors - File Associations,添加.tpl类型,设置PHP Editor为默认编辑器

 

第九步:添加定界符模板

Preference - Web - Editor - Templates,add新添加一个HTML Tag,设定Patten:${cursor}<{}>

Preference - Web - Editor - Content Assist,修改文本提示按键为#号

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值