2

So I'm using Visual Studio 2017 Enterprise Version 15.6.4 and Visual C# 2005 keyboard shortcuts and whenever I'm trying to format the code pressing (Ctrl + E, D) on other languages than C#, I get an error saying

"The key combination is bound to command (Format document) which is not..."

such that the rest I cannot see. I wrote code on TS before but formatted my PC, and now after reinstallation, it just happened no reason.

Error capture:

Error capture

1
  • Does it work when you do it manually through the menus? Commented Apr 13, 2018 at 16:33

1 Answer 1

3

Finally, I figured it out. The problem was that I haven't installed any Visual Studio features that support javascript & typescript. The solution is press "Tools" > "Get Tools and Features" > Then I marked "Universal Windows Platform development" and "Node.js development". Click "Modify" and wait for the installation to complete. Then restart VS and it should work.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.