Issue
I am using VS Code 1.17.2 with the following extensions installed (Unfortuanetly i can't link them since i don't have enough reputation):
- Angular 5 Snippets - TypeScript, Html, Angular Material, ngRx, RxJS & Flex Layout
- Angular Essentials
- Angular Language Service
- Angular v5 TypeScript Snippets
- angular2-inline
- Auto Import
- Debugger for Chrome
- EditorConfig for VS Code (since Angular Essentials depends on it)
- HTML Snippets
- IntelliSense for CSS class names
- Material Icon Theme
- Path Intellisense
- PHP IntelliSense
- Prettier - Javascript formatter
- TSLint
- Visual Studio Team Services
- vscode-icons
- Winter Is Coming Theme
When auto formatting a TypeScript file (Shift + Alt + F), it does the indent right, but it also changes all single quotation marks to double quotation marks, which makes TSLint complain. I am pretty certain the auto indent is not supposed to do that and it really is annoying.
Any help would be greatly appreciated.
Solution
The extensions uses the settings that are set in your VS Code user settings file.
To change it, open your user settings file
Ctrl+Shift+P and type Open User Settings.
Search for prettier.singleQuote
and change it to true like
"prettier.singleQuote": true
Answered By - Daniel B
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.