IntelliJ自动替换双引号字符串 [英] IntelliJ auto replace double-quoted strings

查看:90
本文介绍了IntelliJ自动替换双引号字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用IntelliJ IDEA进行Angular 6(Typescript)开发.当IntelliJ自动添加新导入时,它始终是双引号引起来的字符串. 可以将其手动更改为单引号: 示例屏幕截图

I am using IntelliJ IDEA for Angular 6 (Typescript) development. When new import is added automatically by IntelliJ it's always double-quoted string. There is possibility to change it to single-quoted manually: exemplary screenshot

但是,我希望它会自动发生,并且默认情况下会发生.如何设置?

However, I wish it would happen automatically and by default. How to set it?

推荐答案

在intellij设置中,您可以更改此设置.

In intellij settings you can change this.

转到文件->设置->编辑器->代码样式->打字稿.然后在标点标签中,始终将使用引号更改为单引号.请参考下图.

Go to File -> Settings -> Editor -> Code Style -> Typescript. And then in the Punctuation tab change the use Double quotes always to Single quotes. Refer the image below.

这篇关于IntelliJ自动替换双引号字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆