简体   繁体   中英

Code-formatting in VS2017 for TypeScript files

I want to format my TypeScript Code with Ctrl+K+D. Unfortunately nothing happens. With all other code files it works like expected. What I'm doing wrong?

I had this same issue, along with intellisense missing and other formatting issues. I went to:

Tools -> Options -> Text Editor -> JavaScript/TypeScript -> Intellisense

There I had to tell it which version of TypeScript I was using; it was blank before I selected my version.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM