自訂大綱視圖
「大綱」視圖會顯示目前作用中編輯器的符號樹狀結構。 IBM Z® Open Editor 會將每一個符號對映至 COBOL、PL/I、HLASM 及 REXX 的語言元素。
不過,您可能不希望每個符號都顯示在「大綱」視圖中。 若要控制哪些會出現,您可以修改「使用者」或「工作區」設定。 此時,「REXX 大綱」視圖只會顯示內部常式符號。
啟用或停用大綱視圖符號
使用下列 VS Code 功能表指令,導覽至您的使用者和工作區設定:
Windows/Linux®: 檔案> 喜好設定> 設定
MacOS: 程式碼> 喜好設定> 設定
附註 :VS Code 提供不同的範圍來定義這些設定。 如需相關資訊,請參閱 使用者喜好設定與工作區喜好設定。
在搜尋方框中鍵入
Outline,以過濾設定。根據您的需要啟用或停用「大綱」視圖設定。 請參閱 大綱視圖符號對映參照 ,以瞭解哪些設定會影響哪些符號。
如果您想要修改其原始 JSON 表單中的「大綱」視圖設定,請使用「指令選用區」來執行下列其中一個指令。 請注意,不建議變更預設值。
| 指令選用區 (Ctrl + Shift + P) | 設定 |
|---|---|
> Open Settings (JSON) |
使用者 |
> Open Default Settings (JSON) |
預設值 |
> Open Workspace Settings (JSON) |
工作區 |
大綱視圖符號對映參照
請注意,部分符號會使用多次。 這是預期行為。
這份表格強調顯示 JSON 表單和使用者介面表單中「大綱」視圖設定之間的關係。
| JSON | 設定編輯器 |
|---|---|
"outline.showBooleans":true |
![]() |
COBOL
| 符號 | COBOL 語言元素 | Visual Studio Code 設定 |
|---|---|---|
| 程序 _ 部門 | "outline.showBooleans":true |
|
| 指引 | "outline.showClasses":true |
|
| PROG_ID | "outline.showConstants":true |
|
| DATA_DIVISION | "outline.showConstructors":true |
|
| MAINLINE_SECTION | "outline.showEnumMembers":true |
|
| 鏈結 _ 區段 | "outline.showEnums":true |
|
| WORKING_STORAGE_SECTION | "outline.showEvents":true |
|
| PROCESS | "outline.showFields":true |
|
| ROOT | "outline.showFiles":true |
|
| PARAGRAPH | "outline.showFunctions":true |
|
| ENVIRONMENT_DIVISION | "outline.showInterfaces":true |
|
| 宣告 | "outline.showKeys":true |
|
| ANY_OTHER_SECTION | "outline.showMethods":true |
|
| 配置 _ 區段 | "outline.showModules":true |
|
| COPY | "outline.showNamespaces":true |
|
| ANY_Other_division | "outline.showNumbers":true |
|
| 本端儲存體區段 | "outline.showObjects":true |
|
| END | "outline.showOperators":true |
|
| 程式 | "outline.showPackages":true |
|
| IDENTIFICATION_DIVISION、ID_DIVISION | "outline.showProperties":true |
|
| LEVEL_1_HAS_SUBFIELDS, LEVEL_INDICATOR | "outline.showStrings":true |
|
| 檔案區段 | "outline.showStructs":true |
|
| INPUT_OUTPUT_SECTION | "outline.showTypeParameters":true |
|
| LEVEL_1_HAS_NO_SUBFIELDS、 LEVEL_3、LEVEL_X | "outline.showVariables":true |
PL/I
| 符號 | PL/I 語言元素 | Visual Studio Code 設定 |
|---|---|---|
| 程序 | "outline.showClasses":true |
|
| 事件 | "outline.showEvents":true |
|
| 資料項目 _ 具有子欄位 | "outline.showFields":true |
|
| ROOT | "outline.showFiles":true |
|
| 套件 | "outline.showFunctions":true |
|
| 標籤 | "outline.showInterfaces":true |
|
| 回復 | "outline.showMethods":true |
|
| INCLUDE | "outline.showNamespaces":true |
|
| END | "outline.showOperators":true |
|
| BEGIN | "outline.showPackages":true |
|
| DATAITEM_HAS_NO_SUBFIELDS | "outline.showVariables":true |
HLASM
| 符號 | HLASM 語言元素 | Visual Studio Code 設定 |
|---|---|---|
| 分支 _ 標籤 | "outline.showClasses":true |
|
| CSECT | "outline.showFunctions":true |
|
| MACRO | "outline.showObjects":true |
|
| DSECT | "outline.showStructs":true |
|
| RSECT | "outline.showStrings":true |
|
| COM | "outline.showInterfaces":true |
|
| LOCTR | "outline.showProperties":true |
|
| 標籤 | "outline.showVariables":true |
REXX
| 符號 | REXX 語言元素 | Visual Studio Code 設定 |
|---|---|---|
| 內部常式 | "outline.showObjects":true |
