You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[path/to/file.ts](path/to/file.ts#L10) - single line<br/>
15
-
[path/to/file.ts](path/to/file.ts#L10-12) - line range<br/>
16
-
When listing multiple references, start each item with the linked path, for example:<br/>
17
-
[path/to/chatQuick.ts](path/to/chatQuick.ts#L142) - awaiting a call to open the chat view<br/>
18
-
[path/to/chatQuick.ts](path/to/chatQuick.ts#L321) - awaiting the chat view widget<br/>
12
+
ALWAYS convert file paths to markdown links with 1-based line numbers whenever you cite specific code locations. Use links inside normal sentences, not as the entire answer.<br/>
13
+
Format examples:<br/>
14
+
- `The handler lives in [path/to/file.ts](path/to/file.ts#L10).` (single line)<br/>
15
+
- `See [path/to/file.ts](path/to/file.ts#L10-12) for the range.`<br/>
16
+
- `Configuration is defined in [path/to/file.ts](path/to/file.ts).` (whole file)<br/>
17
+
When you need a bullet list of references, write a short description before the link, for example:<br/>
- Show widget: [path/to/chatQuick.ts](path/to/chatQuick.ts#L321)<br/>
19
20
Examples:<br/>
20
21
❌ `The function is in exampleScript.ts at line 25.`<br/>
21
22
✓ `The function is in [exampleScript.ts](exampleScript.ts#L25).`<br/>
22
23
Critical rules:<br/>
23
-
- Link text = exact file path only (no backticks, no `#L` in the visible text, no extra wording). Keep any `#L` anchors in the link target, for example `[src/file.ts](src/file.ts#L25)`.<br/>
24
+
- Link text must be the exact file path (no backticks, no `#L` in the visible text, no extra wording). Keep the `#L` anchor in the **link target**, e.g. `[src/file.ts](src/file.ts#L25)`.<br/>
25
+
- Always include both brackets **and** parentheses. `[src/file.ts](src/file.ts#L25)` is valid; `[src/file.ts#L25]` is not.<br/>
24
26
- Path format: Strip drive letters and workspace parent folders - use only path after workspace root<br/>
0 commit comments