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中自定义即可。

  • 相关阅读:
    java线程实现和集合类综合问题
    软件体系结构风格总结
    java如何实现对象的克隆
    24小时实现盲打(程序员快速入门)
    测试面向对象软件时,设计集成测试用例的方法
    对白盒测试的一些理解
    对于工程建模需要画的图的分析及体会
    在软件开发的早期阶段为什么要进行可行性研究?应该从哪些方面研究目标系统的可行性?
    谭静第一周任务
    陈林艳第一周任务
  • 原文地址:https://www.cnblogs.com/webclz/p/5104222.html
Copyright © 2011-2022 走看看