Skip to content

Snippets not working in .jsx files (anfn) #279

Open
@izznogooood

Description

@izznogooood

When using "anfn"-> tab inside the brackets "{}" anywhere in the jsx component return statement, nothing happens (filename xyz.jsx).

return (
          ..........
          <IconButton
            color="inherit"
            sx={{ ml: 1 }}
            onClick={ () => {} } // wanted result
          >
     

          <IconButton
            color="inherit"
            sx={{ ml: 1 }}
            onClick={anfn    } // actual result
          >
)

VSCode: 1.74.2
ES7+ React/Redux/React-Native snippets: v4.4.3 (12/25/2022,)

In case of conflicts VScode config:
(I tried a hale mary by adding the config array manually and adding html)

{
    "workbench.colorTheme": "Ubuntu Color VSCode Deep Dark",
    "workbench.iconTheme": "material-icon-theme",
    "files.autoSave": "afterDelay",
    "editor.fontSize": 16,
    "editor.fontWeight": "normal",
    "explorer.confirmDelete": false,
    "workbench.startupEditor": "none",
    "emmet.includeLanguages": {
        "vue-html": "html",
        "javascript": "javascriptreact"
    },
    "redhat.telemetry.enabled": false,
    "rainbowTags.allowEverywhere": true,
    "eslint.format.enable": true,
    "auto-rename-tag.activationOnLanguage": [
        "*"
    ],
    "editor.codeActionsOnSave": {
        "source.fixAll.eslint": true
    },
    "files.exclude": {
        "**/.git": false,
    },
    "[javascript]": {
        "editor.defaultFormatter": "dbaeumer.vscode-eslint"
    },
    "git.enableSmartCommit": true,
    "totalTypeScript.hideAllTips": false,
    "totalTypeScript.hideBasicTips": false,
    "reactSnippets.settings.languageScopes": "typescript,typescriptreact,javascript,javascriptreact,html",
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions