Giter VIP home page Giter VIP logo

laravel-blade-vscode's People

Contributors

amirmarmul avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

laravel-blade-vscode's Issues

Auto Indenting is not working

Trying to use this plugin, auto indenting is not working on HTML code inside blade brackets

I believe it is in relation to this issue I found on the main VS Code site, as I ran the Inspection command suggested and the language does show up as "blade" language and not HTML. The suggested fix for the extension to identify the internal code as HTML.

microsoft/vscode#39142 (comment)

I verified I do have this config setting on my settings file per the documentation.

"emmet.includeLanguages": { "blade": "html" },

Working?

I installed this extension, but there's no blade file type to chose from, nor does the highlighting change to support blade โ€“ It just defaults to php. Secondly, in the extensions manager, I can't disable or enable this extension. The only option is to uninstall.

VS Code 1.40.2

Publish to OpenVSX

Here are some more details about OpenVSX, its goal, and why it was created

For that reason, I can't easily use your extension anymore, could you publish on OpenVSX too?
(It's typically just a matter of running npx ovsx publish - you can also check the full guide for publishing)

linked editing

Thank you so much for this awesome extension !

Do you know if there is a way to make linked editing work with blade files as it works with simple html files ?

Formatting not working

tried to do formatting on controller.php via CTRL + SHIFT + F or ALT + SHIFT + F. nothing works
already set up the settings.json and reload vscode

Less than character (<) breaks auto formatting in if statements

If an @if statement's boolean expression uses a less than character (<), it will cause of if statement to incorrectly auto-format all on one line.

Example:

{{-- This is fine - will format correctly --}}
@if (1 > 5)
A
@elseif (true)
B
@endif

{{-- This is not - will format it all on one line --}}
@if (1 < 5) A @elseif (true) B @endif @endsection

Incorrect formatting when Blade is used in javascript context

The formatter workers for the most part but it is interpreting Blade incorrectly from a javascript context, breaking the brackets because it thinks it is a javascript function and what not.

I suggest the formatter must check if there is a double bracket {{ or a bracket with double exclamation points {!! to avoid breaking it.

You can see the screenshots for reference:

Wrong formatting
wrong_format

Correct formatting (after manual correction of the lines)
correct_code

Add the @switch

Add the snippet for switch component

@switch($value)
  @case(value)
  @endcase
  @default
@endswitch

syntax highlighting broken

I tested a few blade extensions. They all can't highlight correct code like this. Can you do anything about it?

@extends('lay')

@section('content')

@include('nav')

<style media="screen">

@if (Input::old('show'))
.hide_year {
  display: table-cell;
}
@else
.hide_year {
  display: none;
}
@endif
</style>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.