Skip to main content

I'm trying to format the following lines:

    $INCLUDE ../T24_BP I_EQUATE
    $INCLUDE ../T24_BP I_COMMON
    $INCLUDE ../T24_BP I_F.CUSTOMER
    $INCLUDE ../T24_BP I_F.COMPANY

And I get as result:

    $INCLUDE . . / T24_BP I_EQUATE
    $INCLUDE . . / T24_BP I_COMMON
    $INCLUDE . . / T24_BP I_F.CUSTOMER
    $INCLUDE . . / T24_BP I_F.COMPANY
Any way to exclude spacing for a path?
Or add a parameter in format.mvbasic.json to allow ignore formatting for some lines?
Ex. specify ignore formatting regex pattern:
"ignore.format": [ ".*$INCLUDE.+", ".*$INSERT.+"]

I'm trying to format the following lines:

    $INCLUDE ../T24_BP I_EQUATE
    $INCLUDE ../T24_BP I_COMMON
    $INCLUDE ../T24_BP I_F.CUSTOMER
    $INCLUDE ../T24_BP I_F.COMPANY

And I get as result:

    $INCLUDE . . / T24_BP I_EQUATE
    $INCLUDE . . / T24_BP I_COMMON
    $INCLUDE . . / T24_BP I_F.CUSTOMER
    $INCLUDE . . / T24_BP I_F.COMPANY
Any way to exclude spacing for a path?
Or add a parameter in format.mvbasic.json to allow ignore formatting for some lines?
Ex. specify ignore formatting regex pattern:
"ignore.format": [ ".*$INCLUDE.+", ".*$INSERT.+"]

Hello Alex,

The documentation states, "If the program is a record in a different file, the name of the file in which it is located must be specified in the INCLUDE statement, followed by the name of the program. The file name must specify a type 1 or type 19 file defined in the VOC file.".

I presume that your code currently compiles outside our VS Code MV Basic extension? If so, I will create a support ticket for some more details and create an enhancement ticket in the process, as a format exclusion doesn't seem far-fetched.


I'm trying to format the following lines:

    $INCLUDE ../T24_BP I_EQUATE
    $INCLUDE ../T24_BP I_COMMON
    $INCLUDE ../T24_BP I_F.CUSTOMER
    $INCLUDE ../T24_BP I_F.COMPANY

And I get as result:

    $INCLUDE . . / T24_BP I_EQUATE
    $INCLUDE . . / T24_BP I_COMMON
    $INCLUDE . . / T24_BP I_F.CUSTOMER
    $INCLUDE . . / T24_BP I_F.COMPANY
Any way to exclude spacing for a path?
Or add a parameter in format.mvbasic.json to allow ignore formatting for some lines?
Ex. specify ignore formatting regex pattern:
"ignore.format": [ ".*$INCLUDE.+", ".*$INSERT.+"]

This appears to be specific to UniData $INCLUDE <path> <file>, and I have created a bug fix request on formatting.