Sadly, there was ONE thing about VSC which has, so far, kept me on PSPad...
I cannot find a simple easy way to set tab stops as would be standard
for COBOL: 7,8,12,72
On Sunday, May 27, 2018 at 7:58:29 PM UTC-4, pete dashwood wrote:
[snip]
Sadly, there was ONE thing about VSC which has, so far, kept me on PSPad... >>
I cannot find a simple easy way to set tab stops as would be standard
for COBOL: 7,8,12,72
There is no way except through an extension. And you are not the only
one wanting this capability.
< https://stackoverflow.com/questions/50479269/visual-studio-code-cobol >
and
< https://stackoverflow.com/questions/45249594/setting-cobol-tabs-indents-in-visual-studio-code >
I cannot find a simple easy way to set tab stops as would be standard
for COBOL: 7,8,12,72
If anyone tries the VSC COBOL Editor and discerns how to do this, please post here.
I cannot find a simple easy way to set tab stops as would be standard
for COBOL: 7,8,12,72
On Sunday, May 27, 2018 at 7:58:29 PM UTC-4, pete dashwood wrote:
[snip]
I cannot find a simple easy way to set tab stops as would be standard
for COBOL: 7,8,12,72
I am curious, why 72, since 72 is the last column of AREA B?
Why not 73?
On Sunday, May 27, 2018 at 7:58:29 PM UTC-4, pete dashwood wrote:
[snip]
I cannot find a simple easy way to set tab stops as would be standard
for COBOL: 7,8,12,72
I am curious, why 72, since 72 is the last column of AREA B?
Why not 73?
I cannot find a simple easy way to set tab stops as would be standard
for COBOL: 7,8,12,72
If anyone tries the VSC COBOL Editor and discerns how to do this, please
post here.
Pete,
I downloaded and installed the OpenCobolIDE. It's very modern and elegant looking code editor, and it sets the TAB stops to the COBOL standard. It starts at position 8 (shift-tab) and increment to the 72, 80 position.
On Sunday, May 27, 2018 at 7:58:29 PM UTC-4, pete dashwood wrote:
[snip]
I cannot find a simple easy way to set tab stops as would be standard
for COBOL: 7,8,12,72
I am curious, why 72, since 72 is the last column of AREA B?
Why not 73?
Rick Smith <rs847925@gmail.com> wrote:
On Sunday, May 27, 2018 at 7:58:29 PM UTC-4, pete dashwood wrote:
[snip]
I cannot find a simple easy way to set tab stops as would be standard
for COBOL: 7,8,12,72
I am curious, why 72, since 72 is the last column of AREA B?
Why not 73?
We used cols 73-80 as an ID marker. It would tag
the line as 'changed by user id' or some other
kind of identification (date). You could program
punch card machines to automatically put the same
value in specific places on the card, 73-80 was
set for that purpose. And later on some screen
editors could do the same thing.
I am curious, why 72, since 72 is the last column of AREA B?
Why not 73?
So, there is no Eclipse COBOL extension?
I am curious, why 72, since 72 is the last column of AREA B?
Why not 73?
OpenCobolIDE is set to free format by default, and the TAB increment
is set to advance 4 positions, hence 68, 72, 76, 80 and 84...
One of the main things I have noticed when using languages other than
COBOL is that the tools are (generally) much better.
Although both Micro Focus and Fujitsu provide Visual studio (or Eclipse) with their CIL generating compilers, the older native code generating compilers are stuck with a kludgy IDE or nothing at all.
It is many years since I worked with mainframes but I remember SPUFI and
I hope things have moved on from that... :-)
Once you get round the initial learning curve with Visual Studio the capabilities of this amazing tool are quite staggering.
Microsoft released the code to Open Source some time ago and since then
a number of new "Editor" versions for various languages have appeared
for free download.
There is a product called "Visual Studio Code" which is an advanced
editor for a number of languages, including COBOL.
https://marketplace.visualstudio.com/items?itemName=bitlang.cobol
(Notice that it claims to be a "source colorizer" for COBOL. The actual themes provided are really excellent and you can make your COBOL easy to look at and very smart and modern in the choice of colors...)
I downloaded and installed it just to try it and found the results were "mixed".
It provides Intellisense for COBOL (which means it autotypes reserved
words - type "per" for instance and it will write "perform" for you) and
it has something called a "minimap" which provides a map of your code in
the right hand margin. I turned this off through the settings and it
left me with a thin line which shows every reference to a procedure or dataname with a mark in this narrow column. It is really useful and I
like it even better than the bookmarks I normally use with VS. You can
put the cursor on a dataname in the code and it will indicate where it
is defined and everywhere it is used, instantly. Click on any of these
and you are there; without losing your "place". Similarly, if you place
the cursor on a referenced procedure name, it will show you where it is defined and all references to it, instantly.
For people who have moved to .Net WinForms and are using COBOL as the language for their code-behinds, it is important to have a good COBOL editor. Depending on the compiler you are using, there will be an
offering from the vendor but you may not like their IDE and/or if you
are planning on moving to GnuCOBOL, for instance, you might prefer to
keep your options open.
Using an independent editor (especially if it is designed for COBOL or
has a COBOL extension) can be a good choice.
I like PSPad and have been using it for some years now for editing COBOL code-behinds, but it means using a different editor for COBOL and C#
(for which I use VS).
The advent of Visual Studio Code (VSC) means I could use the VSC editor
for COBOL and VS for C# and the interface and facilities would be very similar for both C# and COBOL. (I could even share the same colour scheme...)
Sadly, there was ONE thing about VSC which has, so far, kept me on PSPad...
I cannot find a simple easy way to set tab stops as would be standard
for COBOL: 7,8,12,72
If anyone tries the VSC COBOL Editor and discerns how to do this, please post here.
Pete.
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 1,030 |
Nodes: | 10 (0 / 10) |
Uptime: | 20:05:53 |
Calls: | 13,345 |
Calls today: | 2 |
Files: | 186,574 |
D/L today: |
1,502 files (390M bytes) |
Messages: | 3,357,621 |