1
misaka19000 2017 年 11 月 20 日
去掉 format-when-paste 选项就可以了
|
2
AV1 2017 年 11 月 20 日
应该是这个吧
"editor.autoIndent": false, |
3
ie88 2017 年 11 月 20 日
// Controls if the editor should automatically adjust the indentation when users type, paste or move lines. Indentation rules of the language must be available.
"editor.autoIndent": true, true 改为 false |
4
rocksolid 2017 年 11 月 20 日
应该学学 sublime ctrl v 和 ctrl shift v 分开
|
5
DoraJDJ 2017 年 11 月 20 日
我还想着要有这个功能呢,有时候要套用的代码复制粘贴过去还得人工调缩进真的是累死人...
|
6
whattheh3ll 2017 年 11 月 20 日
原来是个 feature 而不是 bug.
|
7
Wicked 2017 年 11 月 20 日 via iPhone
我比较烦的是它无视用户设定,自动把缩进改成空格,而我是用 tab 的
|
8
mxalbert1996 2017 年 11 月 20 日
@Wicked
// 按 "Tab" 时插入空格。该设置在 `editor.detectIndentation` 启用时根据文件内容进行重写。 "editor.insertSpaces": true 你们用软件之前都不看设置的吗 |
9
Wicked 2017 年 11 月 20 日 via iPhone
@mxalbert1996 最新版,设置了也不行…
|
11
mxalbert1996 2017 年 11 月 21 日 via Android @Wicked 我这里最新版测试没有问题。
|
12
wclimb 2018 年 6 月 19 日
最新版设置了也还是不行,很烦人
|
13
jearyvon 2019 年 9 月 5 日
Editor: Format On Paste
把这个取消掉就好了 |