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

Laravel Blade Spacer

by austenc ST2/ST3

Automatically adds spaces between laravel blade templating markers

Details

Installs

  • Total 55K
  • Win 36K
  • OS X 8K
  • Linux 11K
Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25
Windows 26 10 21 24 21 34 23 35 17 17 22 31 25 31 34 14 18 22 23 22 33 26 14 18 25 24 35 27 25 15 20 20 25 28 27 25 18 15 18 20 24 21 26 12 14 24
OS X 8 3 3 1 4 5 3 7 3 2 1 4 2 5 2 1 2 7 5 5 2 7 4 4 5 3 8 5 3 3 4 1 0 0 3 1 4 4 2 8 1 6 1 5 3 4
Linux 4 3 5 4 3 5 8 9 5 4 5 1 6 8 3 7 3 16 4 4 3 3 4 9 4 7 14 6 8 5 4 7 5 10 9 7 7 6 4 7 8 6 3 4 2 3

Readme

Source
raw.​githubusercontent.​com

Laravel Blade Spacer

Automatically adds spaces to laravel blade syntax for readability.

Plugin for Sublime Text 3 that adds in spaces after the opening blade tag and before the closing tag. Doing it manually gets overly tedious sometimes so I wrote this plugin, cheers!

Installing

Easy Install (Package Control)

You can install this plugin through the Package Control.

  1. Press ⌘/Ctrl + ⇧ + P to open the command palette.
  2. Type Package Control: Install Package and press enter. Then search for Laravel Blade Spacer.

Manual Installation (Not Recommended)

Without Git: Download the latest source from GitHub <http://github.com/austenc/blade-spacer>. Copy the whole directory into the Packages directory.

With Git: Clone the repository in your Sublime Text Packages directory:

git clone git://github.com/austenc/blade-spacer.git

The “Packages” packages directory is located at:

  • OS X::

    ~/Library/Application Support/Sublime Text 3/Packages/

  • Linux::

    ~/.Sublime Text 3/Packages/

  • Windows::

    %APPDATA%/Sublime Text 3/Packages/

How it works

Sublime text already handles the auto-closing of braces. This plugin automatically adds spaces between double (or triple) curly braces in blade files for readability.

The cursor is represented by | in the examples:

  • typing {{ will yield {{ | }} – notice the spaces and cursor position
  • should work with {{{ }}} and {{-- Comments --}} too!
  • Laravel5 syntax support {!! | !!}

Since 2.2.0 A command has been added to space every set of blade syntax tags in the currently open file. It is under the 'Blade Spacer: Format File' option in the command palette (Ctrl+Shift+P by default in windows / linux, and Cmd+Shift+P on mac).

Feedback welcome, open an issue here.