# Strange behaviour of VS Code

**URL:** https://discourse.julialang.org/t/strange-behaviour-of-vs-code/19619
**Category:** New to Julia
**Created:** [January 14, 2019, 2:18pm UTC](https://discourse.julialang.org/t/strange-behaviour-of-vs-code/19619 "2019-01-14T14:18:52Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ceysa75](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ceysa75/32/19121_2.png) [@ceysa75](https://discourse.julialang.org/u/ceysa75)
#### Post date: [January 14, 2019, 2:18pm UTC](https://discourse.julialang.org/t/strange-behaviour-of-vs-code/19619/1 "2019-01-14T14:18:52Z")

</div>

Hi all,

Following observation made based on VS code (1.30.2) using Julia 1.03

The code line below behaves differently depending on how I run the code.

```julia
xval = range(0,stop=50,length=1000)

```

If I run the line with CTRL+Enter all is fine. However, running the line pressing the ‘Play’ button or (CTRL+ALT+N), respectively, the following error occurs:

```julia
LoadError: function range does not accept keyword arguments

```

Any ideas ? Of course the given code snippet is from a longer code which due to that cannot be run with a single mouse click.

Thanks in advance

---

<div class="post-metadata">

### Author: ![davidanthoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davidanthoff/32/223493_2.png) [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)
#### Post date: [January 14, 2019, 5:12pm UTC](https://discourse.julialang.org/t/strange-behaviour-of-vs-code/19619/2 "2019-01-14T17:12:13Z")

</div>

We don’t hook into the play button yet, so it is probably trying to do something entirely different that is unrelated to julia. It is on my (too long) list of todos to properly hook into the run experience in VS Code. No promise when that will happen, though.

---

<div class="post-metadata">

### Author: ![ceysa75](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ceysa75/32/19121_2.png) [@ceysa75](https://discourse.julialang.org/u/ceysa75)
#### Post date: [January 16, 2019, 7:52am UTC](https://discourse.julialang.org/t/strange-behaviour-of-vs-code/19619/3 "2019-01-16T07:52:08Z")

</div>

Ah ok, thank you for the information. Thought, this issue was somehow related to coderunner. So I wonder how others run longer code in VS Code. Line by line ?

Regards

ceysa

---

<div class="post-metadata">

### Author: ![davidanthoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davidanthoff/32/223493_2.png) [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)
#### Post date: [January 16, 2019, 5:23pm UTC](https://discourse.julialang.org/t/strange-behaviour-of-vs-code/19619/4 "2019-01-16T17:23:33Z")

</div>

I think F5 should work, if you have a file open. Ideally save it before you run it.
