austenc / blade-spacer Goto Github PK
View Code? Open in Web Editor NEWAutomatically adds spaces between laravel blade templating markers
License: MIT License
Automatically adds spaces between laravel blade templating markers
License: MIT License
It would be easier if we can do that rather than press left button 3 times after typing variable name
I know this is ment for Laravel Blade syntax, but i was woundering if you wound consider add support for .vue files becouse those files uses the same syntax with {{ | }}
Cursor (represented by |
):
<a href="{{| route('notifications') }}" class="btn btn-block btn-default btn-lg">
causes:
<a href="{{{ }route('notifications') }}" class="btn btn-block btn-default btn-lg">
when it should be
<a href="{{{ route('notifications') }}}" class="btn btn-block btn-default btn-lg">
Like {{-- --}}
something like (haven't figured out full scenario, doesn't always work):
<h1>This is some text {{ | }</h1>
so instead of something like
@include('post',['row'=>$posts])
or
{{ Form::open(['route'=>'save.post','files'=>true]) }}
or
{{ Form::file('photo[]',['multiple'=>true,'class'=>'form-control-file']) }}
the plugin would add a space after each comma,array fat arrow, etc..
Adds too many braces -- fix this so it doesn't multiply the # of braces added by the # of cursors
can u also add the option so the plugin will add spaces on save if the {{}} doesn't have ?
Please add {!! | !!}, Thanks !
Sometimes it puts the closing braces outside the set of quotes.
Mustache has a similar syntax. When there is no scope, spaces are added for both blade and mustache which means I have to manually remove them. Restricting the file scope would fix this issue.
Not sure this ever worked, but {!!
tags don't work if you select text and then try to type/surround with that style of braces.
Currently if you select text and type {{
for example, it is surrounded with closing braces as well. When you type a comment {{--
with selected text, the selected text inside is deleted.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.