Dividing Julia file in sections (VS code)

Hi everyone,

I was wondering if you can divide your Julia file in sections. I use this a lot when coding in Python so I don’t have to run every piece of code all the time. In Python VS code we can use #%% to divide in sections. But I couldn’t find the same operation for Julia. Is there something similar for Julia?

Thanks for helping me out.

1 Like

Yes, this is discussed in the docs here:


You can delimit blocks with ## and execute them with the Julia: Excecute Code Cell command (which apparently is bound to Shift-Enter in standard keybindings, but I’ve changed mine so can’t check).