zoukankan      html  css  js  c++  java
  • sublime

    1.一套皮肤

    https://github.com/equinusocio/material-theme

    2.新建快捷代码

    <snippet>
    <content><![CDATA[
    public function ${1:默认值}(){
    ${2}
    }
    ]]></content>
    <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
    <tabTrigger>met</tabTrigger>
    <!-- Optional: Set a scope to limit where the snippet will trigger -->
    <scope>source.php</scope>
    </snippet>

    保存的后缀名一定是.sublime-snippet  就可以使用met+tab快速建立函数了。

    3.两个重要的快捷键

    command + p      :12 跳转到某一行  #搜索文件 @跳转到某个方法

    comand+r 在当前类中快速定位到一个方法中。

    command +k +b 隐藏导航栏

    4.安装插件  advancednewfiles

    新建文件 command + alt +n 

    弹出新建文本框 输入:test.php 会在当前选中文本的文件件里新建一个文件。注意要输入冒号,否则会在主目录中生成。

    也可以配置参数来控制整个行为。

    5. 自动生成函数   getter setter

    安装插件  php getters and setters

    6.命名空间自动生成

    安装插件  php+companion

    在key binding user中配置

    [
    {"keys":["command+u"],"command":"expand_fqcn"}
    ]

    在文件中使用命名空间的时候,写下明明空间的名字,command+u会自动找到该命名空间的名字。

    这个插件还有很多其它的功能,有待研究。 

    7.格式化代码

    安装插件 CodeFormatter

    调用命令command+shif+p  输入code formt

    8.更改导航栏的字体大小

    You will need to edit the .sublime-theme file to do this. Unfortunately, in Sublime Text 3 this file is contained in a zipped .sublime-package file, so you'll need to extract that first. Install the PackageResourceViewer plugin via Package Control, then hit ⌘ShiftP and type prv to bring up the PackageResourceViewer options. Select Open Resource, scroll down to Theme - Default, hit Enter, scroll down to Default.sublime-theme, and hit Enter again to open it.
    
    Next, search for sidebar_label and modify the first one (on line 362) to look like this (it needs to be valid JSON):
    
    {
        "class": "sidebar_label",
        "color": [0, 0, 0],
        "font.bold": false,
        "font.italic": false, // <-- add comma
        "font.size": 14 // <-- new line
        // , "shadow_color": [250, 250, 250], "shadow_offset": [0, 0]
    },
    Save the file, and you should see the sidebar font size change. You can change 14 to whatever size you want, depending on your personal preferences.
    

    9.快捷键

     ctrl +g 快速跳转到某行

    ctrl + command +上下键   可以移动某一行

    command+d 快速复制当前行

    ctrl +shift +k  删除某一行

    command + w 关闭当前标签

    这些快捷键都是可以自己自定义的,在key binding default中找到对应的快捷键 在key binding user中自定义即可。

  • 相关阅读:
    全基因组关联分析学习资料(GWAS tutorial)
    GWAS研究可利用的数据库(20200424更新)
    本周最新文献速递20200614
    本周最新文献速递20200607
    甲基化数据QC: 使用甲基化数据推测SNP基因型(ewastools工具)
    文献速递20200531
    查找感兴趣的基因、基因组区域是否有调控元件的在线网页工具EpiRegio
    许嵩
    甲基化数据QC:使用甲基化数据计算样本间的相关性
    there is no package called 'GO.db'报错解决方案
  • 原文地址:https://www.cnblogs.com/webclz/p/5104222.html
Copyright © 2011-2022 走看看