zend studio基本使用基础配置笔记
一、zend studio自定义注释设置
1、方法注释
Window->preferences->General->PHP->Editor->Templates
Name:func Context:PHP Automatically insert(打勾)
Description:create new function
Pattern:
/**
* 功能描述:
* @author: 名字
* @date: ${date}
*/
public function ${function_name}(${dollar}${param}) {
${cursor}
}
2、文件头模块注释
Window->preferences->General->PHP->Code Style->Code Templates->Comments->Files
/**
* 功能描述:
* @package @subpackage
* @module
* @createdate ${date}
* @version V1.0.0.1
* @author ${user}
* @copyrigh 2021 xxx网络科技有限公司 版权所有
*/
二、修改代码字号大小
Window -> preferences -> General -> Appearance -> Color and Fonts -> Basic -> Text Fonts -> Edit
三、zend Studio SVN安装
http://jingyan.baidu.com/article/29697b9132b52eab20de3ca8.html
1、help->Install New Software…
2、在弹出窗口的 Work with 栏输入:http://subclipse.tigris.org/update_1.8.x,然后点 Add按钮
subclipze integration for mylyn 3.x @ptional 该项取消勾选
3、弹出Add Repository窗口; 如果在下边出现两项:Subclipse 和SVNkit两项的话,直接关闭该窗口;
在Name栏输入;subversion; 在Location栏输入;http://subclipse.tigris.org/update_1.8.x,然后点ok 按钮,
或者栏输入:http://subclipse.tigris.org/update_1.8.x,后等一会,直接出现:Subclipse 和SVNkit两项,直接选中这两个;然后点击下一步;
在下边出现两项:Subclipse 和SVNkit,两个都选中,并将Subclipse中的:Subclipse Integration for Myiyn 3.x (optional)这项不要选中,然后点击Next按钮;如下图所示:点击:Next 按钮;
4、选中 I accept the terms of the license agreement,并点击Next按钮;
5、弹出正在安装界面
6、安装过程中,弹出的Security Warning对话框,点击OK按钮;
7、安装完之后,弹出Software updates对话框,则点击Restart Now重启zendstudio;
8、重启完成后,在PHP Explore 区域空白处右键,选择Import;
9、然后再弹出的窗口中找到SVN菜单,并选中Project from SVN(从SVN 检出项目),再点击Next按钮;
10、 Create a new Repository location(创建新的资源位置) ,并点击Next按钮
11、配置链接SVN服务器信息,填写完成之后点击Next按钮,
12、 在弹出的Check out as 窗口中点击:Finish按钮;
13、选中检测出的项目,并点击OK按钮;
14、正在从svn服务器将项目下载到本地进度条
15、从SVN服务器导入项目完成
http://subclipse.tigris.org/update_1.8.x
四、引入已有项目
File -> New -> Other -> General -> Project -> Next -> 输入工作区域已有的项目名称 -> finish -> 完成
五、zend Studio 工作区默认编码设置
https://jingyan.baidu.com/article/9158e0007c65eea2541228d1.html
Window -> Preference ->General -> Workspace -> Other -> Apply -> Ok
六、修改默认编码
window->preference->General->Workspace->other
七、svn忽略文件提交
window->preference->Team->Ignored Resources->Add pattern...
(*/Runtime/* */log/2018*)
八、svn IP修改项目重新定位
方法1:
所有项目统一定位:windows->show view->other->SVN->svn资源库/svn repositories,在原来的资源库右击 重新定位 输入新的ip
方法:
a、单个项目定位:断开项目与svn连接—项目资源管理库/Resource并且从文件系统中删除SVN元信息 勾选并且从文件系统中删除SVN元信息
b、重新建立本地项目与svn的连接,再次右键单击该项目->Team>Share Project
d、弹出窗口,选择版本库类型为SVN,进入下一步,选择‘创建新的资源库位置’,继续下一步
e、输入新的ip