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

Laravel Blade Spacer

by austenc ALL

Automatically adds spaces between laravel blade templating markers

Details

Installs

  • Total 77K
  • Win 51K
  • Mac 11K
  • Linux 15K
Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9
Windows 1 3 2 8 1 0 4 2 2 1 2 1 1 1 2 3 4 2 0 5 0 1 3 3 4 1 2 2 1 3 5 0 1 4 0 4 6 4 5 2 0 4 7 3 0 9
Mac 1 2 1 0 0 0 4 0 1 0 0 0 1 0 1 0 0 0 0 0 0 0 1 2 0 0 0 1 0 0 2 1 2 0 0 0 0 0 0 0 0 2 1 0 1 0
Linux 0 2 0 1 0 0 1 1 0 0 2 3 1 0 3 0 2 2 0 3 3 11 0 0 2 0 1 0 0 0 0 0 0 0 1 0 0 0 2 0 1 1 0 1 0 0

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.