Lev Goncharov

DevOps Engineer

View My GitHub Profile

How to prepare sublime

Download sublime text 3

Package Control

please visit packagecontrol.io:

plugin install

plugin remove

sublime settings

{
  "color_scheme": "Packages/User/SublimeLinter/Monokai (SL).tmTheme",
  "default_encoding": "UTF-8",
  "default_line_ending": "unix",
  "dictionary": "Packages/Russian-English Bilingual.dic",
  "ensure_newline_at_eof_on_save": true,
  "font_size": 11,
  "ignored_packages":
  [
    "Markdown",
    "SublimeLinter-pyyaml",
    "Vintage"
  ],
  "rulers":
  [
    80
  ],
  "spell_check": true,
  "tab_size": 2,
  "translate_tabs_to_spaces": true,
  "trim_trailing_white_space_on_save": true,
  "word_wrap": "true"
}

sublime linter

sublime Jinja2

sublime rubocop

style guide

for mac os or linux

sudo gem install rubocop

for windows

gem install rubocop --http-proxy=http://some.proxy.example.com:3128

sublime shellcheck

https://github.com/koalaman/shellcheck

sublime yaml lint

gem install yaml-lint

sublime applysyntax

it is needed for ansible lint

Sublime Text -> Preferences -> Package Settings -> ApplySyntax -> Settings - User
    "syntaxes": [{
        "name": "Ansible/Ansible",
        "rules": [
          {"file_name": ".*/tasks/.*.yml$"},
          {"file_name": ".*/handler/.*.yml$"},
          {"file_name": ".*/*_vars/.*.yml$"},
          {"file_name": ".*/roles/.*.yml$"},
          {"file_name": ".*/playbooks/.*.yml$"},
          {"file_name": ".*/.*ansible.*/.*.yml$"},
          {"file_name": ".*/.*explotation.*/.*.yml$"},
          {"file_name": ".*/.*provision.*/.*.yml$"}
        ]
      }]

sublime yaml

install yaml lint

pip install yamllint --proxy http://some.proxy.example.com:3128

sublime ansible

https://github.com/mliljedahl/SublimeLinter-contrib-ansible-lint

sublime pylint

install pylint

pip install pylint --proxy http://some.proxy.example.com:3128

Spell checking

By default Sublime text has only EN dictionary. For other languages you need dictionaries. You can download it here

Press F6 for enable/disable spell checking

Markdown в Sublime

Sublime text 3 has it by default. however I advise to improve it.

MarkdownEditing

MarkdownEditing

Hints

Table Editor

Table Editor

Markdown preview

Markdown Preview

#### SublimeLinter-annotations