Giter Site home page Giter Site logo

Comments (7)

formulahendry avatar formulahendry commented on June 10, 2024 7

Hi @ChuckkNorris , you could set the languages that the auto-close-tag will be activated,
In VS Code, File->Preferences->User Settings, to open the settings.json. Then add config like below:

{
    "auto-close-tag.activationOnLanguage": [
        "javascript",
        "javascriptreact",
        "html",
        "xml",
        "php"
    ]
}

Refer to this for the full list of Language Identifiers.
Let me know if this works for you.

from vscode-auto-close-tag.

lucascyrne avatar lucascyrne commented on June 10, 2024 5

So if I want auto-close-tag on jsx DOM tags but at the same time, deactivate it when closing generic typescript types. simply can't I? @formulahendry

thanks in advance.

from vscode-auto-close-tag.

lbfalvy avatar lbfalvy commented on June 10, 2024 1

All I want for Christmas is a setting to enable this for .tsx files but not for .ts files

from vscode-auto-close-tag.

ChuckkNorris avatar ChuckkNorris commented on June 10, 2024

Exactly what I was looking for - thanks for the help.
I'll read the docs more carefully next time.

from vscode-auto-close-tag.

kellyrmilligan avatar kellyrmilligan commented on June 10, 2024

what @lucascyrne brings up is exactly how I landed here from google.

from vscode-auto-close-tag.

rezoled avatar rezoled commented on June 10, 2024

The issue is not closed. When writing angular code I want to get auto close in templates, but not in the typescript block of the same file.

from vscode-auto-close-tag.

tincho avatar tincho commented on June 10, 2024

when file type is "typescriptreact"

the extension could only activate autoclosing if inside a return statement

of course it's not a perfect fix, since JSX may be in a variable or non-return statement

... but it would be good enough !

from vscode-auto-close-tag.

Related Issues (20)

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.