Submitted by gouki on 2013, March 18, 10:17 PM
在群里聊天的时候,有很多人就说了,你用什么 IDE啊。很多人都说了一些。zs啦,phped啦,nb啦之类的。当然在我眼里,目前的IDE中,除了phpstorm外,其他的真的都是渣渣。功能实在强大
但同时而来的就是很多人问我关于phpstorm的一些技巧,一些特色,嗯,这些有部分都在我之前的博客里有贴过,搜索一下phpstorm就OK了。真的有不少,但其实真的,官网上的例子实在太多了。而且有一些小技巧都是非常不错。不知道这些人在问的时候为什么不去官网看一下
http://blog.jetbrains.com/webide/
在这里你能看到很多技巧,有教你用phpunit的,有教你怎么debug的,还有教你怎么重构代码,怎么提升开发效率的。
例:
- Composer support in PhpStorm
- Refactoring for Class Members in PhpStorm 6: Pull Up and Push Down
- File Watchers in WebStorm/PhpStorm 6 (a.k.a. “Background Tasks”)
随便贴了点,相信你能在他们的博客上找到更多。不要再犹豫了。最近oschina上还在卖打折的版本。不过现在好象变成3折了。。有点悲催 ,前两天还是2折呢。你怎么看,元芳?
Tags: phpstorm
Software | 评论:0
| 阅读:18698
Submitted by gouki on 2013, March 4, 11:55 AM
WPS的二次开发?我不需要,但是一些接口文档我还是需要的。
比如[2008-09-16] - 闲着无聊,用WPS生成文档,在这篇博客里我写了用wps生成doc文档的例子,但事实上文章末尾介绍的两个网址都打不开了。
新的开发文档:
wps office二次开发帮助文档.rar
新的介绍地址:http://bbs.wps.cn/thread-22004642-1-1.html
Tags: wps
Software | 评论:0
| 阅读:17586
Submitted by gouki on 2013, February 1, 3:17 PM
本来是不想禁用的,但发现机器的风扇就一直没停过,CPU消耗的最大的就是firefox下的flash插件 .没辙了.我还是禁用它吧.
嗯flashblock即可,但其实我是想从软件的底层就直接禁用它.可惜没有好的办法....只能用插件了.网上类似的教程还有很多,比如这个:
内容来源:http://orzl.com/weblog/disable-the-flash-on-mac
于是乎,世界清静了.嗯,我没有那么急的需求要看flash....而且开了之后,耗电量也大增,何必呢.
Tags: flash
Software | 评论:0
| 阅读:18408
Submitted by gouki on 2013, January 24, 11:56 AM
在使用phpstorm创建文件的时候,如果是在filetemplate中出现过的。都会调用默认的模版,这时候,可以在其中调整自己的信息,还是比较方便的,比如我现在就是这样设置的:
XML/HTML代码
- <?php
- /**
- * ${FILE_NAME}
- *
- * @category
- * @package
- * @author gouki <gouki.xiao@gmail.com>
- * @version $Id$
- * @created ${DATE} ${TIME}
- */
- Yii::import("application.controllers.${DIR_NAME}.*");
- class ${NAME} extends Controller{
- public function actions(){
- return array(
- 'index'=>'IndexAction',
- );
- }
- }
嗯,上面的这是标准的代码,不过,如果有命名空间的话。那怎么办呢?因为在官方的模版里,并没有提到这个。。它只提到了这些:
XML/HTML代码
- This is a built-in template. It contains a code fragment that can be included into file templates (Templates tab) with the help of the #parse directive. The template is editable. Along with the static text, code and comments, you can also use the predefined variables that will be then expanded like macros into the corresponding values.
- Predefined variables will take the following values:
- ${FILE_NAME}
-
- current file name
- ${USER}
-
- current user system login name
- ${DATE}
-
- current system date
- ${TIME}
-
- current system time
- ${YEAR}
-
- current year
- ${MONTH}
-
- current month
- ${DAY}
-
- current day of the month
- ${HOUR}
-
- current hour
- ${MINUTE}
-
- current minute
- ${PRODUCT_NAME}
-
- current IDE name
怎么办呢?于是我就想啊想,最后变成了这样:
XML/HTML代码
- <?php
- /**
- *
- *
- * PHP version 5.3.x
- *
- * @category
- * @package
- * @author gouki <gouki.xiao@gmail.com>
- */
- #if (${NAMESPACE})
- namespace ${NAMESPACE};
- #end
-
- /**
- * ${FILE_NAME}
- *
- * @category
- * @package
- * @author gouki <gouki.xiao@gmail.com>
- * @version $Id$
- * @created ${DATE} ${TIME}
- */
- class ${NAME} {
-
- }
如果定义了namespace,那么就在上面写上namespace ${NAMESPACE};
世界清静了好多。关键代码也少写了很多。
当然,其实很多人都是在程序完成后,统一用脚本加上这些注释的。这样倒也是不错。
只是现在这样的方式,在生成API文档的时候会比较方便一点。黑黑
Software | 评论:0
| 阅读:18822
Submitted by gouki on 2013, January 11, 10:13 AM
其实,这篇博客应该发在昨天的。
昨天据说是liteide2周年,所以作者发布了一个新的版本。
再加上,昨天又是高伯伯的生日,两日 并一日。新版本就这样出来了
网址在:http://code.google.com/p/golangide/downloads/list
话说回来,liteide已经换过N多的LOGO了。一个是“易”的中文,一次是地球 ,这回换上了太极图了。据说太极图是用QT画出来的。。。
蛋疼的人总是很多。嗯其实是我很羡慕罢了。
这次好象没有什么太大的更新,好象基本上就是为了2周年,改了LOGO发布的。
当然也开始支持了tip版的go(http://code.google.com/p/golangide/wiki/changes)
- GolangDoc:
- support go tip version
- show error output
不过还是要介绍一下这个软件:
如果你需要很好的使用markdown,以及预览,建议你下载内嵌webkit核心的那份。还能支持导出成PDF哦。
Introduction
LiteIDE is a simple, open source, cross-platform Go IDE.
Base Features
- Mime type basis system
- System environment manage
- Build system manage
- Debug system simple and open
- Kate syntax and style scheme
- WordApi complete helper
Golang Support
- Package browser
- Class view and outline
- Document browser
- Gocode(https://github.com/nsf/gocode) support
- GOPATH api index
- Jump to declaration
- Code expression info
- Go playground
Markdown suppor
- Live preview and sync scroll
- Custom css , css files from Mou(http://mouapp.com)
- Export html and pdf
- Markdown batch
- separate to html or pdf
- merge to html or pdf
System
Website
- Source code
- Binary downloads
- Google group
- Update logs
Log
Tags: liteide
Software | 评论:0
| 阅读:15932