# Method to find previous output in vscode julia repl

**URL:** https://discourse.julialang.org/t/method-to-find-previous-output-in-vscode-julia-repl/78911
**Category:** New to Julia
**Tags:** vscode
**Created:** [April 2, 2022, 3:16pm UTC](https://discourse.julialang.org/t/method-to-find-previous-output-in-vscode-julia-repl/78911 "2022-04-02T15:16:10Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jisutich](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jisutich/32/33342_2.png) [@jisutich](https://discourse.julialang.org/u/jisutich)
#### Post date: [April 2, 2022, 3:16pm UTC](https://discourse.julialang.org/t/method-to-find-previous-output-in-vscode-julia-repl/78911/1 "2022-04-02T15:16:10Z")

</div>

Hi,

I am using vscode to run my julia code. I use `@time` to know how long my code needs to run, something like `815.511743 seconds (5.52 G allocations: 573.809 GiB, 5.88% gc time)`. But when I try to find the total time of some code I run earlier, I fail to find it. It seems that my vscode terminal does not show the whole history output. How to solve this problem? Thank you.

---

<div class="post-metadata">

### Author: ![gdalle](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gdalle/32/27854_2.png) [@gdalle](https://discourse.julialang.org/u/gdalle)
#### Post date: [April 3, 2022, 7:42pm UTC](https://discourse.julialang.org/t/method-to-find-previous-output-in-vscode-julia-repl/78911/2 "2022-04-03T19:42:48Z")

</div>

How much earlier are we talking about? I think the memory may be truncated after some point but it is not necessarily the problem you’re facing

---

<div class="post-metadata">

### Author: ![jisutich](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jisutich/32/33342_2.png) [@jisutich](https://discourse.julialang.org/u/jisutich)
#### Post date: [April 4, 2022, 1:29am UTC](https://discourse.julialang.org/t/method-to-find-previous-output-in-vscode-julia-repl/78911/3 "2022-04-04T01:29:35Z")

</div>

I try to get the output like several minutes ago. I guess it is my fault. I keep losing some previous outputs results after I execute some commands in the terminal of vscode.

---

<div class="post-metadata">

### Author: ![gdalle](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gdalle/32/27854_2.png) [@gdalle](https://discourse.julialang.org/u/gdalle)
#### Post date: [April 4, 2022, 5:15am UTC](https://discourse.julialang.org/t/method-to-find-previous-output-in-vscode-julia-repl/78911/4 "2022-04-04T05:15:09Z")

</div>

If I remember correctly, the problem is not in terms of minutes but in terms of nb of lines printed in the REPL since the command you wish to go back to.  
Have you tried [How to save @time output in a file or variable?](https://discourse.julialang.org/t/how-to-save-time-output-in-a-file-or-variable/11218) ?

---

<div class="post-metadata">

### Author: ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)
#### Post date: [April 4, 2022, 7:16am UTC](https://discourse.julialang.org/t/method-to-find-previous-output-in-vscode-julia-repl/78911/5 "2022-04-04T07:16:43Z")

</div>

You can try changing the `terminal.integrated.scrollback` setting to a higher value (e.g. 10000).
