diff --git a/docs/user-guide/ze-usage-tips.md b/docs/user-guide/ze-usage-tips.md index 2307f8501e..85abe7c2e2 100644 --- a/docs/user-guide/ze-usage-tips.md +++ b/docs/user-guide/ze-usage-tips.md @@ -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