最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

VS Code does not seem to understand the difference between indentation and alignment - Stack Overflow

programmeradmin9浏览0评论

I cannot seem to make VS Code follow my prefered coding settings, which are tab for indentation (size 4) and then spaces for alignment.

If I have this code:

db.query("SELECT * FROM whatever" +

And I press ENTER, I then have to add spaces (which is OK) until I reach the quote, lke this:

db.query("SELECT * FROM whatever " +
sp sp sp |

(I'm writing sp for spaces and tab for tabs)

Then I open quotes and write a bit more. Then, if I close quotes, add a plus and hit ENTER, that's when VS Code does not follow previous indent + align and uses only tabs for indent + alignment.

db.query("SELECT * FROM whatever " +
sp sp sp "WHERE whatever " +
tab tab |

Anyone know how to fix this issue?

发布评论

评论列表(0)

  1. 暂无评论