從游標處往後列出相符的所有 #define
]D
範例
一般模式 0 / 1一般模式 1 / 1搜尋目前檔案及其引入的檔案,列出游標所在單字的定義。
已準備來源工作區
#define LIMIT 20 int target_later; int target;
- 目前項目
example.c- 包含
later.h- 關鍵字
LIMIT
視窗示意
- example.c 使用中
使用中的原始碼視窗
列出所有相符的原始碼行。
已準備來源工作區
#define LIMIT 20 int target_later; int target;
- 目前項目
example.c- 包含
later.h- 關鍵字
LIMIT
包含搜尋輸出
- later.h:1
#define LIMIT 20
操作前後
操作前
已準備來源工作區
#define LIMIT 20 int target_later; int target;
- 目前項目
example.c- 包含
later.h- 關鍵字
LIMIT
視窗示意
- example.c 使用中
使用中的原始碼視窗
操作後
已準備來源工作區
#define LIMIT 20 int target_later; int target;
- 目前項目
example.c- 包含
later.h- 關鍵字
LIMIT
包含搜尋輸出
- later.h:1
#define LIMIT 20
操作示意。在範例檔案 example.c 中,游標下方有一行引入 later.h。使用 C 的 include 和 define 樣式。path=.,iskeyword 包含底線,符合的項目均位於註解之外。所有來源均為示意資料。此示意圖未開啟任何檔案,而實際 ]D 會讀取包含的檔案。對於 ] 形式,搜尋從游標所在行之下繼續,到達下一個 include。範例的命令列設為 cmdheight=4,沒有待顯示的訊息,檔名與巨集內容各自都能完整顯示在一行。兩行輸出無需按 Enter 提示即可顯示。面板彙總比對結果。
#define LIMIT 10
int target;
use LIMIT target;
#include "later.h"游標位於第 3 行,第 5 欄