Visual Studio Code Format Code does not work on Mac OS X (El Capitan)

Update:

I don’t know what happened with the installation of Visual Studio code, but uninstalling and reinstalling the application (via homebrew) fixed the problem. Shift - Option - F once again formats the code!


I am trying to format the code in Visual Studio code on MAC OSX El Capitan.

For some reason, the default key binding ("Shift + Option + F") does not work. I also no longer have the opportunity to format the code with the command "Command + Shift + P" and enter the "format code". In fact, '> format code' is no longer an option in the list.

It worked, but I'm not sure what has changed.

"Shift + Option + F" does something, but creates a "̰" character, which leads to some strange cursor behavior (not sure how to describe it) when moving characters adjacent to the "̰" character.

Additional Information:

  • I am creating an Ember.js application (v2.3.0)
  • I tried formatting * .js, * .hbs and * .json files, but it doesn’t work in any of these
+4
source share
4 answers

I had the same problem and realized that there was a fix for this. VS Code repo has a closed issue, and this may explain why your problem was fixed after reinstallation.

This is a link to a question about the VS Code repository:

https://github.com/Microsoft/vscode/issues/11810

+1
source

mac, VScode, . ,

+1

, !

. , , , .

0

. 2016 . Visual Studio Code Salsa. , Typescript 1.8 typescript.tsdk, :

// Specifies the folder path containing the tsserver and lib*.d.ts files to use. "typescript.tsdk": "./node_modules/typescript/lib"

2016 . Visual Studio Code , Salsa . typescript.tsdk .

0

Source: https://habr.com/ru/post/1628628/


All Articles