Skip to content

Commit

Permalink
Merge pull request #3946 from zowe/anax-v3.0-fileassociationfordatase…
Browse files Browse the repository at this point in the history
…ts-ze

documenting file associations instructions for V3
  • Loading branch information
anaxceron authored Oct 14, 2024
2 parents 2531080 + 347153f commit df0c3d6
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docs/user-guide/ze-usage-tips.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,17 @@ Zowe Explorer supports syntax highlighting for data sets and USS files. To enabl

## Configure the detected language of a file or data set

Configure Visual Studio Code to use a specific language for a particular file extension type. This prevents the language for a file or data set opened in Zowe Explorer from being detected incorrectly. To set file associations, see [Add a file extension to a language](https://code.visualstudio.com/docs/languages/overview#_add-a-file-extension-to-a-language).
Configure the `file.associations` setting in Visual Studio Code to use a specific language for a particular file extension type. This prevents the language for a file or data set opened in Zowe Explorer from being detected incorrectly.

To set file associations that work for sequential data sets as well as partitioned data set members, use wildcards with the language identifier in the format `**/*LANGUAGE*{,/*}`:

```
"files.associations": {
"**/*COBOL*{,/*}": "cobol"
}
```

In the example above, Zowe Explorer uses wild cards to find matches of the configured language (`COBOL`) in the file paths of sequential data sets (for example, `/lpar.zosmf/TEST.COBOL.PS`) and PDS members (for example, `/lpar.zosmf/TEST.COBOL.PDS/MEMBER`).

## Manage a profile

Expand Down

0 comments on commit df0c3d6

Please sign in to comment.