visual-studio-code - vscode: insert constant amount of spaces instead of completing indentation
问题描述
Which setting controls that indentation inserts 4 spaces instead of complete up to 4 spaces. Let me explain via example, (my vscode is set to tab == 4 spaces
)
Given the following query (·
is used to simulate space)
SELECT col1
·····, col2 -- 5 spaces before coma
··FROM mytable -- 2 spaces before FROM
·WHERE cond1 -- etc...
···AND cond2
···AND cond3
If I press Tab
selecting the query I got the following un-formatted code
····SELECT col1 -- 4 spaces added
········, col2 -- 3 spaces added so 8 are before coma
····FROM mytable -- 2 spaces added so 4 are before FROM
····WHERE cond1 -- etc...
····AND cond2
····AND cond3
Instead of adding 4 spaces to each line, it completes spaces up to the smaller multiple of 4. Current solution is column wise cursor and add manually 4 spaces, but I'd like the Tab
buttom to mean insert 4 spaces at the begining of line without any autocompletion / intelligent indent / whatsoever
解决方案
推荐阅读
- android - 在Android中使用tensorflow lite(在设备上)进行面部识别(不检测)
- ssl - 未应用证书管理器的入口 TLS 路由
- java - 我如何允许用户为 Jtable 和 mysql 表中的整数列输入“空”?
- html - 在 Angular 7 中单击按钮上的表格中显示表格
- node.js - 'npm' 在 laravel 6.0 中不被识别为内部或外部命令、可运行程序或批处理文件
- html - 如何在嵌套行上设置断点 Bootstrap
- dataframe - Julia:如何获取 DataFrame/Table 的每一列的类型?
- javascript - 为什么 jquery 日期选择器插件不起作用
- python - Python:在 x 秒内没有服务器消息后关闭 TCP 客户端与服务器的连接
- c++ - 是否有标准的 C++ 函数将生成的数组打印为可用于数组初始化的字符串?