Document IDE support

Created on 8 March 2021, over 3 years ago
Updated 26 May 2023, over 1 year ago

VS Code (IDE) doesn't know how to handle this kind of file and can't syntax highlight the code within an sfc file.

By declaring .sfc files as vuejs files I get the template and script areas working (mostly) but of course the <?php section won't get picked up.

Do you know of any way to get this working nicely in an IDE?

💬 Support request
Status

Active

Version

1.0

Component

Miscellaneous

Created by

🇮🇹Italy tanc Italy

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇯🇵Japan tyler36 Osaka

    #2 Didnt work for me with VSCode 1.78.2 & Vetur 0.37.3
    It identifies the "style" and "template" blocks but all of "php" block is white.

    Strangely, if I replace the code in the php block with CSS

    <php>
      .big-text {
        font-size: 100px;
      }
    </php>
    

    - update my settings

      "vetur.grammar.customBlocks": {
        "php": "css",
      }
    

    ... I would expect the code to detect as CSS but it does not (all white).

Production build 0.71.5 2024