I use Shift + Alt + F to format code, It鈥檚 not working! I also try to run VS Code without extensions, execute:code --disable-extensions but It still can鈥檛 working. when I pressing shift+option + f key in my Mac will typing special character 脧.
like this:

Facing similar issue. I'm unable to run the command format code
i had same issue on mac.
VSCode: 1.7.1
macOSX El Capitan 10.11.6
@charliethinker This is not enough information for me to reproduce
What information would you need?
My versions are:
VSCode: 1.7.1 (1.7.1)
macOS Sierra: 10.12.1
I need to know in what language this happens and what plugins you are using. Also, I need to know if this only happens when you try this with the shortcut or if this also happens when selecting format from the context menu
In my case when i editing some c# files using older versions vscode it was working perfectly (i don't know which one is).
After the update right click menu, intellisense, document format and shortcuts not worked. But i solved my problem.
With the lastest update all csharp files HAVE to under at least one solution (.sln) or project.json structure, otherwise it's not gonna work correctly.
So, im happy :)
@jrieken I'm in China, In Mac can only use Shift + Alt + F shortcut to format code, There is no way to use the context menu in Mac, I also try to run VS Code without extensions, execute: 路code --disable-extensions. but It still can鈥檛 working.
I use extensions list here:





I have to reinstall VS Code, It can work well. Today I found after I written markdown file in vs(I installed vscode-instant-markdown extension), format code and intellisense doesn't work again.
@ferhatayhan
In my case when i editing some c# files using older versions vscode it was working perfectly
I'm the same as you.
@charliethinker if you want to working with c# read that topic. https://code.visualstudio.com/docs/languages/csharp#_roslyn-and-omnisharp
@jrieken when I use cover install VS Code, format and intellisense can't working. but I use ccleaner to uninstall VS Code and install it again ,format and intellisense was working well. Then I opened two window of VS Code(Shift+Cmd+N), one side used to write C#, while used to write the markdown file, after a period of time, format and intellisense doesn't work again.
In my case it is happening for Javascript.
I never use the keyboard shortcut, I allways open the command palette and select format code. The option does not exist anymore. Here are my extensions:


This is what happens when I try to format it:

re https://github.com/Microsoft/vscode/issues/15682#issuecomment-262238663 we renamed that for format code, it does the same but has a different label. When you want to format a selection only, you must have a selection first. @danielo515 this issue is about a C# setup problem as it seems, please don't mixin JavaScript as these are different worlds
@charliethinker re https://github.com/Microsoft/vscode/issues/15682#issuecomment-262142905 Do I understand correctly that this happens with C# files?
@jrieken re #15682 (comment) Yes.
This issue happened again today, after I open new window to writing my blog with markdown.
Then my context menu has changed:
before:

after:

I am having this same issue on Mac.
VSCode Version 1.8.0 (1.8.0)
MacOSX Version 10.11.6 (El Capitan)
When I try to format code via the shift+alt+F shortcut this character prints out instead of formatting the code: 脧. Also when I open the context menu there is no option for "Format Document". Furthermore if I open the command palette there is no option for "Format Document" as well. I am trying to do this on Python files, JavaScript files, SCSS files, and HTML files (all of which do not work).
Plugins Installed:

The "Format Document" option missing from the command palette:

The "Format Document" option missing from the context menu:

@danielo515 this issue is about a C# setup problem as it seems, please don't mixin JavaScript as these are different worlds
I can't see any evidence of that on the title neither in the description of the issue, so please forgive my confusion.
It seems like this kind of situation happened after some extensions updated, I disable all my extensions, and format (shift + alt + f) works again.
ok. closing this as being caused by an extension that.
I had same issue when I was opening a single javascript file in vs code On Mac, But when I tried "Open Folder" in explorer for the same file "Format Document" start working.
Hello i have same problem when (shift + alt + f) i have '.' and no formatting.
Nobody have solution
Thanks
Hi there, got a problem too, maybe it's releated:
on Mac OS and since VSCode 1.16 i cannot use ALT + L (@) inside any File "no keyboard combination"
1.17 clean, no plugins installed. shift+alt+f produces 脧. Format command is not available at all (it does not appear under shift+cmd+p ">format" )
This is definitely not fixed.
Any updates on this? I don't want to get back to Atom because of these kinds of issues... (vscode version 1.17.2)
1.17 clean, no plugins installed. shift+alt+f produces 脧. Format command is not available at all (it does not appear under shift+cmd+p ">format" )
Out of the box, without extensions, VS Code supports formatting only for a small set of languages, like JavaScript and TypeScript. That is only because we ship those extensions with VS Code. The rule of thumb is that a formatter-extension must be installed.
If a formatter exists, for lets say JavaScript, the editor context menu will include a "Format Document" command, also the Alt/Option+Shift+F sequence will be bound. If for a language, lets say Rust, no formatter is installed that doesn't happen, so no entry in the context menu, not binding the aforementioned sequence.
We do acknowledge the Alt/Option+Shift+F-confusion because on macOS it inserts by default 脧. We have recently pushed a commit that binds that sequence even when not having a formatter such that it can show a message asking you to install one.
We encourage everyone to browse the existing formatter extensions on our market-place because we cannot ship with formatters for every language.
I have renamed and locked this issue because we now show a message when no formatter is installed or available and because we want separate issues for separate things. Don't be afraid to file duplicate.
Most helpful comment
1.17 clean, no plugins installed. shift+alt+f produces 脧. Format command is not available at all (it does not appear under shift+cmd+p ">format" )
This is definitely not fixed.