# How to show the row numbers inside the Julia Table in VSCode?

**URL:** <https://discourse.julialang.org/t/how-to-show-the-row-numbers-inside-the-julia-table-in-vscode/59249>\
**Category:** VS Code\
**Created:** [April 14, 2021, 1:40am UTC](https://discourse.julialang.org/t/how-to-show-the-row-numbers-inside-the-julia-table-in-vscode/59249 "2021-04-14T01:40:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AA\_julia](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@AA\_julia](https://discourse.julialang.org/u/AA_julia)\
**Post date:** [April 14, 2021, 1:40am UTC](https://discourse.julialang.org/t/how-to-show-the-row-numbers-inside-the-julia-table-in-vscode/59249/1 "2021-04-14T01:40:10Z")

</div>

How can I show the rows indices inside the Julia Table in VSCode? I can only see the columns indices, as shown below. For now, I’m using this trick: x = [1:length(x) x], but I’m wondering if there is a better/default method that I should use, without of course using external packages such as DataFrames. Thank you!

 ![Julia Table 2](https://global.discourse-cdn.com/julialang/original/3X/3/1/31d21b4c4a99e6fb3829eb4b622b79ec32cf9ad9.jpeg)

---

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [April 14, 2021, 6:56pm UTC](https://discourse.julialang.org/t/how-to-show-the-row-numbers-inside-the-julia-table-in-vscode/59249/2 "2021-04-14T18:56:43Z")

</div>

Do not find VS Code Julia table display very useful, specially for large tables.  
For whatever it is worth, the following `vdisp()` function displays tables in a VS Code pane, adding a first column for the row numbers that display as integers even if the data have different type.

**NB:** _PrettyTables.jl is much better looking and for large tables there is BrowseTables.jl_

```julia
vdisp(d) = vscodedisplay(Any[1:size(d,1) d])

using Random

d = rand(7,5)
e = rand('a':'z',7,5)
f = [randstring(5) for _ in 1:7, _ in 1:5]

vdisp(d)
vdisp(e)
vdisp(f)

```

---

<div class="post-metadata">

**Author:** ![AA\_julia](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@AA\_julia](https://discourse.julialang.org/u/AA_julia)\
**Post date:** [April 14, 2021, 9:20pm UTC](https://discourse.julialang.org/t/how-to-show-the-row-numbers-inside-the-julia-table-in-vscode/59249/3 "2021-04-14T21:20:48Z")

</div>

Thank you for your help, rafael.guerra.
