# Stop running code pasted into REPL on first error

**URL:** <https://discourse.julialang.org/t/stop-running-code-pasted-into-repl-on-first-error/44637>\
**Category:** General Usage\
**Tags:** repl\
**Created:** [August 9, 2020, 7:25pm UTC](https://discourse.julialang.org/t/stop-running-code-pasted-into-repl-on-first-error/44637 "2020-08-09T19:25:14Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![fredcallaway](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredcallaway/32/20304_2.png) [@fredcallaway](https://discourse.julialang.org/u/fredcallaway)\
**Post date:** [August 27, 2020, 1:11am UTC](https://discourse.julialang.org/t/stop-running-code-pasted-into-repl-on-first-error/44637/21 "2020-08-27T01:11:02Z")

</div>

Update: I was able to get roughly my desired behavior by editing the SendCode plugin to wrap multiline inputs with a `begin...end` block. I still think this should be the default behavior of the REPL (and it would presumably be pretty easy to implement) but we can’t always get what we want.

On the off chance that someone else finds this thread with the same problem, shoot me a message and I’ll share the fix with you.

P.S. I gave VS Code a shot. The way remote hosts are handled turned me off (having to install the various VS code plugins and reindex all the packages for LanguageServer.jl every time I make a new EC2 instance). But I think I will start using it for local debugging. Thanks for the tip @anon67531922!

[Previous page](https://discourse.julialang.org/t/stop-running-code-pasted-into-repl-on-first-error/44637.md?page=1)
