A
A
Alex2019-02-05 11:44:47
Visual Studio Code
Alex, 2019-02-05 11:44:47

How to format html+php code in Visual Studio Code?

I am working with a WordPress theme. Here everywhere in php files - html code but with php inserts. There is some extension that can properly format, say, this code:

<span class="vote-count vote"
        itemprop="upvoteCount"><?php
      $votes = (int) get_post_meta(get_the_ID(), 'question_vote', true);
      echo $votes;
    ?></span>

The ones I need, format the html and php with respect to the tag. I have only found extensions that either format html or php. But not connected in any way.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Timofey Alekseev, 2019-02-05
@bbbbbbbbbbbbbbbbbbblobb

https://marketplace.visualstudio.com/items?itemNam...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question