本文介绍了TypeScript 自动导入中的 WebStorm/PhpStorm 双引号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
设置/首选项 编辑器 |代码风格 |打字稿 标点符号"选项卡 |生成的代码 ->引号
我使用带单引号的 TypeScript 样式,双引号仅用于 HTML 模板.
I'm using TypeScript style with single quotes, double quotes are used exclusively in HTML templates.
WebStorm/PhpStorm 自动导入添加了带有双引号的 import 语句并破坏了样式.我想这适用于所有 JetBrains 产品.
WebStorm/PhpStorm auto import adds import statements with double quotes and ruins the style. I guess this applies to all JetBrains products.
如何修复这种行为?
推荐答案此行为由以下选项控制:
This behaviour is controlled by the following option:
从 2017.1 版本开始,它位于新的 Punctuation 选项卡上,并且选项的命名略有不同:
As of 2017.1 version it's on new Punctuation tab and options are named a bit differently:
更多推荐
TypeScript 自动导入中的 WebStorm/PhpStorm 双引号
发布评论