Setting Cobol Tabs/Indents in Visual Studio Code

你说的曾经没有我的故事 提交于 2019-12-11 06:35:30

问题


I have just installed Visual Studio Code on my Mac.

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.


回答1:


I'd guess the options are:

  • 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)

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...



来源:https://stackoverflow.com/questions/45249594/setting-cobol-tabs-indents-in-visual-studio-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!