在Visual Studio Code中设置Cobol选项卡/缩进 [英] Setting Cobol Tabs/Indents in Visual Studio Code

查看:344
本文介绍了在Visual Studio Code中设置Cobol选项卡/缩进的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在Mac上安装了Visual Studio Code。

I have just installed Visual Studio Code on my Mac.

让我抓狂的是我无法设置制表符/缩进来匹配我喜欢的Cobol格式第7、8、12、16、20、24和72列。
我已经看到了如何将制表符设置为4个空格,但是这给了我第5列,第9列的缩进,就像在第1 + 4当然是5,然后从那里选择4个空格。

What is driving me crazy is my inability to set my tabs/indents to match my preferred Cobol formatting of columns 7, 8, 12, 16, 20, 24 and 72. I have seen how to set the tab to 4 spaces, but that gives me Indents to column 5, 9 etc as it seems to tab column 1 + 4 which of course is 5 and then tab 4 spaces from there.

推荐答案

我要猜测选项为:


  • 已明确执行此扩展的扩展名(您未指定是否对VSC使用任何COBOL扩展名)

  • 将标尺设置为您的首选设置,请参见在Visual Studio Code中使用垂直标尺?和希望,您找到了在这些标尺之间进行切换的方法(如果没有,请执行以下操作:创建扩展名)

  • an extension that explicit does this already (you didn't specified if you use any COBOL extension for VSC or not)
  • set the rulers to your preferred settings, see Vertical rulers in Visual Studio Code? and "hope" you find a way to tab between these (if not: create an extension that does so)

另一个选择是始终使用规格不同的编辑器在COBOL上已实现开放化,并且可能(取决于您所编码的方言)甚至支持语法检查,例如 OCIDE

Another option is always to use a different editor that is specialized on COBOL and may (depending on the dialect you code) even support syntax checking, like OCIDE...

这篇关于在Visual Studio Code中设置Cobol选项卡/缩进的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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