ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Pretty YAML

by aukaost ST2/ST3

Sublime Text 2/3 plugin that allows to format a YAML file

Details

  • 0.1.0
  • github.​com
  • 5 years ago
  • 2 hours ago
  • 5 years ago

Installs

  • Total 42K
  • Win 12K
  • OS X 20K
  • Linux 10K
May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6
Windows 3 8 3 3 9 14 14 10 10 3 6 8 7 9 8 13 2 3 6 5 7 7 6 5 6 9 9 10 7 9 1 3 10 13 10 13 20 6 9 5 13 17 14 13 9 4
OS X 4 14 10 6 12 18 19 16 9 6 7 14 13 12 10 14 4 3 16 15 10 18 15 4 5 12 18 13 15 13 7 4 7 13 12 16 14 3 4 21 16 19 27 15 8 9
Linux 1 10 2 3 6 7 10 7 8 7 8 4 8 9 6 8 4 4 7 9 5 7 6 3 7 9 13 6 6 4 5 5 1 13 11 4 2 4 5 13 10 11 9 9 5 3

Readme

Source
raw.​githubusercontent.​com

Pretty YAML

Prettify YAML plugin for Sublime Text 2 & 3 (Based on Pretty JSON)

Installation

Install this sublime text package via Package Control

Usage To prettify YAML, make selection of YAML and press keys:

  • Linux: ctrl+alt+y

  • Windows: ctrl+alt+y

  • OS X: cmd+ctrl+y

If selection is empty and configuration entry use_entire_file_if_no_selection is true, tries to prettify whole file.

If YAML is not valid it will be displayed in status bar of sublime.

Default configuration

This plugin uses PyYAML to process YAML files. You can specify the arguments for the Dumper in the plugin's preferences.

Thanks

License

  • View LICENSE files in plugin root and yaml/ subfolders (both MIT)