Skip to content

Commit 2e9119d

Browse files
thofmaKristofferC
authored andcommitted
Clarify disabling of tab-completion hinting in the documentation (#57493)
(cherry picked from commit e2cc68c)
1 parent 56909d7 commit 2e9119d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

stdlib/REPL/docs/src/index.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,15 @@ mapfoldl mapfoldr
341341

342342
When a single complete tab-complete result is available at the end of an input line and 2 or more characters
343343
have been typed, a hint of the completion will show in a lighter color.
344-
This can be disabled via `Base.active_repl.options.hint_tab_completes = false`.
344+
This can be disabled via `Base.active_repl.options.hint_tab_completes = false` or by adding
345+
```
346+
atreplinit() do repl
347+
if VERSION >= v"1.11.0-0"
348+
repl.options.hint_tab_completes = false
349+
end
350+
end
351+
```
352+
to your `~/.julia/config/startup.jl`.
345353

346354
!!! compat "Julia 1.11"
347355
Tab-complete hinting was added in Julia 1.11

0 commit comments

Comments
 (0)