Skip to content

Commit f68854c

Browse files
committed
refactor: update js ts code intelligence doc
1 parent 434f6b8 commit f68854c

1 file changed

Lines changed: 6 additions & 20 deletions

File tree

docs/07-Code Intelligence/01-javascript-typescript.md

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,32 +11,18 @@ slug: "/Features/js-ts-code-intelligence"
1111
Browser version runs on classic JavaScript hints. For smarter Code intelligence, switch to the desktop app.
1212
:::
1313

14-
## Code Completions
14+
Code hints, parameter hints, hover info, jump to definition, and error checking all work as described in [Code Intelligence](./Code%20Intelligence). This page covers what is specific to JavaScript and TypeScript.
1515

16-
Suggestions appear as you type, drawn from your project and the libraries you use. Press `Ctrl + Space` to open them manually.
16+
## Auto Imports
17+
18+
Suggestions are drawn from your project and the libraries you use.
1719

18-
- A documentation popup appears beside the list, showing the selected item's signature and docs.
1920
- Picking a symbol from another file or module automatically adds the import at the top of your file.
2021
- If the same name exists in several modules, the hint shows how many and lets you choose which one to import.
2122

22-
## Parameter Hints
23-
24-
When you type a function call, a popup shows the function's parameters and highlights the one you are on. You can also open it from `Edit``Show Parameter Hint`.
25-
26-
## Hover Info
27-
28-
Hold your cursor over any symbol to see its type signature and documentation. The popup also has two quick action buttons:
29-
30-
- **Go to Definition**: Jumps to where the symbol is defined, even in another file.
31-
- **Find Usages**: Lists every place the symbol is used across the project.
32-
33-
<!-- TODO: PLUTO - add image here showing the hover popup with quick actions -->
34-
35-
Both are also available in the right-click menu, and as keyboard shortcuts: `Ctrl/Cmd + J` for Go to Definition and `Shift + F12` for Find Usages.
36-
37-
## Errors and Quick Fixes
23+
## Type Checking
3824

39-
Errors and warnings from the language server appear in the [Problems panel](/docs/Features/Problems%20Panel/ESLint) as you type. When a fix is available, use the **Fix** button next to the problem, or **Fix All** to apply every fix in the file.
25+
Errors and warnings from the language server appear in the [Problems panel](/docs/Features/Problems%20Panel/ESLint) as you type, with a **Fix** button when a fix is available.
4026

4127
> In plain JavaScript files, type warnings are off by default. Turn on **Type-check JavaScript** in the [config panel](#the-config-panel) to get them.
4228

0 commit comments

Comments
 (0)