Tobby 发表于 2013-1-6 06:54:36

【openlayers】Sublime text 2 体验

<div id="cnblogs_post_body">在异次元看到一篇介绍Sublime代码编辑器:http://www.iplaysoft.com/sublimetext.html
Real Sexy!!
初步使用下来感觉非常符合我的口味!中文版下载地址http://www.ithome.com/html/soft/27362.htm
对于Ol开发在这主要介绍两点一个是插件sublimeCodeIntel另一个就是sublime的code snippet。
sublimeCodeIntel :能够让sublime跳转到变量或方法定义的地方(跨文件)以及代码提示(支持自定义的类)
http://pic002.cnblogs.com/images/2012/174629/2012111221151769.png
http://pic002.cnblogs.com/images/2012/174629/2012111221122043.png
sublime的code snippet:快速输入代码段,我们可以编写一些自己经常用到的一些代码片段。
例如:
<div class="cnblogs_code"><snippet>    <content><!      OpenLayers.Layer.WMS(${1:name},${2:url},{          lyers:${3:name},          format: ${4:'image/jpeg'},          isBaseLayer:"${5:true}"          },         { opacity:"${6:1}",            singleTile: "${7:false}"          }      );]]></content>    <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->    <tabTrigger>OpenLayers.Layer.WMS</tabTrigger>    <!-- Optional: Set a scope to limit where the snippet will trigger -->    <scope>source.js</scope></snippet>
页: [1]
查看完整版本: 【openlayers】Sublime text 2 体验