Sublime Text 2插件可按字母顺序对功能进行排序 [英] Sublime Text 2 plugin to sort your functions alphabetically

查看:248
本文介绍了Sublime Text 2插件可按字母顺序对功能进行排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在应用程序中构建许多功能,现在我想按字母顺序排列它们. Sublime Text 2中是否有任何功能可以自动执行此功能.应该改变这些

I am building many functions in my application and now I want to alphabetise them. Is there any function in Sublime Text 2 that will do this automatiaclly. It should change these

public function login_1()
{
........
}

public function about()
{
........
}

public function close()
{
........
}

进入这些

public function about()
{
........
}

public function close()
{
........
}

public function login_1()
{
........
}

推荐答案

我想知道您是否正在使用PHP,从您提供的语法上似乎可以做到.

I wonder if you are using PHP, from the syntax you provided it seems you do.

此处是该任务的插件,但看起来仅适用于PHP.它首先使用作用域对方法进行排序,然后再按方法名称进行排序.

Here is a plugin for that task, but it looks like it works with PHP only. It sorts your methods using the scope first and then by method name.

这篇关于Sublime Text 2插件可按字母顺序对功能进行排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆