![](/img/trans.png)
[英]JetBrains WebStorm auto format conflict with ESLint rule no-case-declarations
[英]Change auto import format in WebStorm
我正在使用WebStorm 2016.3,目前正致力於基於打字稿的項目。
現在自動導入將生成如下內容:
import {xxx} from "yyy"
我想將格式更改為
import { xxx } from 'yyy'
我該怎么做呢?
2016.3 *:
在Settings | Code Style | Typescript | Spaces
Settings | Code Style | Typescript | Spaces
Settings | Code Style | Typescript | Spaces
,啟用Within / ES6 import/export braces
在Settings | Code Style | Typescript | Other
Settings | Code Style | Typescript | Other
Settings | Code Style | Typescript | Other
,設置Quote marks:
到單引號
2017.1 *:
Settings | Code Style | Typescript | Spaces
Settings | Code Style | Typescript | Spaces
Settings | Code Style | Typescript | Spaces
,啟用Within / ES6 import/export braces
Settings | Code Style | Typescript | Punctuation
Settings | Code Style | Typescript | Punctuation
Settings | Code Style | Typescript | Punctuation
,設置Use
單挑 你可以改變這個:
設置| 代碼風格| 打字稿| 其他
在“ 生成代碼”部分中為引號選擇單引號
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.