Может ли textmate отсортировать мой код в читаемые столбцы?

228
muirbot

Мне нравится вставлять повторяющиеся строки кода, чтобы их было легко увидеть и увидеть небольшие различия. Например, это трудно прочитать:

address = "1800 Washington St." name = "George McGoo" user_type = "admin" 

но это легко прочитать:

address = "1800 Washington St."  name = "George McGoo"  user_type = "admin" 

Есть ли способ сделать это в Textmate, не изнашив моего пробела?

0

1 ответ на вопрос

0
tink

I don't know anything about textmate, but you can solve the issue at hand with the command-line:

$ cat addresslist address = "1800 Washington St." name = "George McGoo" user_type = "admin" address = "1800 Washington St." name = "George McGoo" user_type = "admin" $ awk -F'=' ';last=NR}ENDelse}}' addresslist address = "1800 Washington St." name = "George McGoo" user_type = "admin" address = "1800 Washington St." name = "George McGoo" user_type = "admin" 

Похожие вопросы