Skip to content

Can't format selection using ESLint #108808

@Tsimopak

Description

@Tsimopak
  • VSCode Version: 1.50.1
  • OS Version: Windows

Steps to Reproduce:

I found out that if I write in my settings.json that:

  "eslint.format.enable": true,
  "[javascriptreact]": {
    "editor.defaultFormatter": "dbaeumer.vscode-eslint",
  }

Then I can format the whole page using ALT + SHIFT + F with ESLint ( or right click -> Format Document ).

I can also see once I right click -> Format Selection With.... then I can see ESLint as an option.

But if I select a line and press right click, then Format Selection With... I can't find the Eslint option. ( or as a shortcut CTRL+K )

So how can I format selection with ESLint?

Does this issue occur when all extensions are disabled?: Yes

Metadata

Metadata

Assignees

Labels

*questionIssue represents a question, should be posted to StackOverflow (VS Code)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions