对于那些想缩进除=
和以外的字符的人|
,我能够安装Alignment包并在其中修改文件,Sublime Text > Preferences > Package Settings > Alignment > Settings - User
使其看起来像以下内容:
{
"alignment_chars": [
"{create",
]
}
然后,我选择以下代码:
let!(:admin_user) {create(:admin_user, :admin)}
let!(:another_admin_user) {create(:admin_user, :admin)}
let!(:superadmin_user1) {create(:admin_user, :superadmin)}
let!(:superadmin_user2) {create(:admin_user, :superadmin)}
let!(:nonadmin_user) {create(:admin_user)}
并按Command + Ctrl + A
以使其对齐。
let!(:admin_user) {create(:admin_user, :admin)}
let!(:another_admin_user){create(:admin_user, :admin)}
let!(:superadmin_user1) {create(:admin_user, :superadmin)}
let!(:superadmin_user2) {create(:admin_user, :superadmin)}
let!(:nonadmin_user) {create(:admin_user)}
一切都移到了{create
文本仍然可以对齐时可以占据的最左列。