Skip to content

Commit 363c633

Browse files
bjarthurKristofferC
authored andcommitted
document tab completion for dictionary keys (#30147)
(cherry picked from commit a836064)
1 parent df1c2eb commit 363c633

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

stdlib/REPL/docs/src/index.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,21 @@ lastindex offset string
316316
The completion of fields for output from functions uses type inference, and it can only suggest
317317
fields if the function is type stable.
318318

319+
Dictionary keys can also be tab completed:
320+
321+
```julia-repl
322+
julia> foo = Dict("qwer1"=>1, "qwer2"=>2, "asdf"=>3)
323+
Dict{String,Int64} with 3 entries:
324+
"qwer2" => 2
325+
"asdf" => 3
326+
"qwer1" => 1
327+
328+
julia> foo["q[TAB]
329+
330+
"qwer1" "qwer2"
331+
julia> foo["qwer
332+
```
333+
319334
## Customizing Colors
320335

321336
The colors used by Julia and the REPL can be customized, as well. To change the

0 commit comments

Comments
 (0)