# Is there an easy way to get at the history of REPL input?

**URL:** <https://discourse.julialang.org/t/is-there-an-easy-way-to-get-at-the-history-of-repl-input/18025>\
**Category:** General Usage\
**Tags:** repl\
**Created:** [November 26, 2018, 6:28pm UTC](https://discourse.julialang.org/t/is-there-an-easy-way-to-get-at-the-history-of-repl-input/18025 "2018-11-26T18:28:48Z")\
**Posts on this page:** 1\
**Showing post:** 23

<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:** [August 17, 2021, 7:59am UTC](https://discourse.julialang.org/t/is-there-an-easy-way-to-get-at-the-history-of-repl-input/18025/23 "2021-08-17T07:59:22Z")

</div>

Not sure if this has been mentioned:

- In Windows with the \*.jl file extension registered for opening with VS Code, adding the following to `startup.jl` will open the REPL history in a VS Code tab, that updates automatically as more commands are typed:

```julia
path = raw"C:\Users\jrafa\.julia\logs\repl_history.jl"
run(`cmd /c code "" $path`)

```

or one may define a ` history()` function instead:

```julia
history() = run(`cmd /c code "" "C:\Users\jrafa\.julia\logs\repl_history.jl"`)

```

_ **NB:** inspired by this @greg_plowman’s [post](https://discourse.julialang.org/t/edit-on-windows/1695/7)_

---

_[View the full topic](https://discourse.julialang.org/t/is-there-an-easy-way-to-get-at-the-history-of-repl-input/18025)._
