# Why does Visual Studio Code not correctly render "isa" statement?

**URL:** https://discourse.julialang.org/t/why-does-visual-studio-code-not-correctly-render-isa-statement/100511
**Category:** VS Code
**Created:** [June 18, 2023, 10:43am UTC](https://discourse.julialang.org/t/why-does-visual-studio-code-not-correctly-render-isa-statement/100511 "2023-06-18T10:43:54Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Ahmed\_Salih](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ahmed_salih/32/206579_2.png) [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)
#### Post date: [June 18, 2023, 10:43am UTC](https://discourse.julialang.org/t/why-does-visual-studio-code-not-correctly-render-isa-statement/100511/1 "2023-06-18T10:43:54Z")

</div>

Hello!

In VS Code suppose I have the following snippet:

```julia
if isa(true,Bool)
    println("This is true")
end

if true isa Bool
    println("This is true too")
end

```

You even see how the code statement here actually renders it correctly, but in VS Code:  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/f/b/fb6409312b8ab849d3eae440deee2748b8920201.png)

You see how “isa” is not coloured yellow in the second approach.

Kind regards

---

<div class="post-metadata">

### Author: ![kellertuer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kellertuer/32/220707_2.png) [@kellertuer](https://discourse.julialang.org/u/kellertuer)
#### Post date: [June 18, 2023, 4:12pm UTC](https://discourse.julialang.org/t/why-does-visual-studio-code-not-correctly-render-isa-statement/100511/2 "2023-06-18T16:12:10Z")

</div>

I think this is quite consistent. _Function calls_ are coloured yellow, but infix notation is not colored yellow (`a in b` vs `in(a,b)` does the same for example).

---

<div class="post-metadata">

### Author: ![CameronBieganek](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cameronbieganek/32/6915_2.png) [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)
#### Post date: [June 19, 2023, 1:45am UTC](https://discourse.julialang.org/t/why-does-visual-studio-code-not-correctly-render-isa-statement/100511/3 "2023-06-19T01:45:43Z")

</div>

If you use my [Julia Color Themes](https://marketplace.visualstudio.com/items?itemName=cameronbieganek.julia-color-themes), then the second `isa` is colored the same as other infix operators:

![image](https://global.discourse-cdn.com/julialang/original/3X/4/a/4a8b429fa3994114a483a86f2bdb0691c55dc76c.png)

There are various other Julia optimizations, like the `end` being colored a darker shade of red then the `if` and `for` keywords.

---

<div class="post-metadata">

### Author: ![dylanxyz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dylanxyz/32/36646_2.png) [@dylanxyz](https://discourse.julialang.org/u/dylanxyz)
#### Post date: [June 19, 2023, 2:31am UTC](https://discourse.julialang.org/t/why-does-visual-studio-code-not-correctly-render-isa-statement/100511/4 "2023-06-19T02:31:53Z")

</div>

I wonder If someone made a custom theme where the `end` keyword is transparent, making julia code look like python 🤔

---

<div class="post-metadata">

### Author: ![kellertuer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kellertuer/32/220707_2.png) [@kellertuer](https://discourse.julialang.org/u/kellertuer)
#### Post date: [June 19, 2023, 4:13am UTC](https://discourse.julialang.org/t/why-does-visual-studio-code-not-correctly-render-isa-statement/100511/5 "2023-06-19T04:13:37Z")

</div>

I think that would not be a good idea. If you miss to type end, you would get errors, but not see that that is the cause of error.
