Tbpgr Blog

Employee Experience Engineer tbpgr(てぃーびー) のブログ

Sublime Text2 | 80文字の位置にlineを表示する

概要

80文字の位置にlineを表示する

内容

Rubyの一般的な規約では、1行あたりの文字数は80文字以内です。
そこで、80文字の位置に縦線を表示するように設定します。

設定

Setting User

"rulers": [80],

画像

右端の80文字の位置に縦線が表示されています。

おまけ

キャプチャに写っているストZERO DSL。特に意味は無い。

Ruby
# encoding: utf-8

class StreetFighter
  class << self
    alias zero instance_eval

    def 波動拳
      puts "236P"
    end

    def 昇竜拳
      puts "623P"
    end

    def 竜巻旋風脚
      puts "214K"
    end
  end
end

StreetFighter.zero do
  波動拳
  波動拳
  昇竜拳
  竜巻旋風脚
end
出力
236P
236P
623P
214K