Skip to content

Commit e2cc68c

Browse files
authored
Clarify disabling of tab-completion hinting in the documentation (#57493)
1 parent e026aff commit e2cc68c

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
@@ -343,7 +343,15 @@ mapfoldl mapfoldr
343343

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

348356
!!! compat "Julia 1.11"
349357
Tab-complete hinting was added in Julia 1.11

0 commit comments

Comments
 (0)