Reputation: 1
'@Component({
selector: "message-list",
templateUrl: "./message-list.component.html",
styleUrls: ["./message-list.component.css"],'
What setting do I need to do when you save the file like selector:
'message-list';
import { MessageVM } from "../message-section/message.vm" to import { MessageVM } from '../message-section/message.vm'
Upvotes: 0
Views: 915
Reputation: 129
The problem can be related with the formatter, if you are using prettier formatter you can add .prettierrc file in the root of your project with the following configuration
{
"singleQuote": true
}
Upvotes: 1
Reputation: 2253
If you are using the Prettier extension, see the other answers. If you don't have Prettier, then this should help:
Option 1 - JSON config:
(Command/Control + Shift + P)
> Preferences: Open Settings (JSON)
"typescript.preferences.quoteStyle": "single"
Option 2 - UI config:
(Command/Control + Shift + P)
> Prefrences: Open Settings (UI)
single
Upvotes: 0
Reputation: 593
You can follow the below steps in order to disable that feature from the vscode. (If you have already installed the Prettier plugin with vscode )
File > Preferences > Settings
singleQuote
.Prettier:Single Quote
So that it will never replace the double quotes with single quotes.
Upvotes: 1