You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/userguide/runningcode.md
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ The REPL that is started with the `Julia: Start REPL` command will have the root
32
32
There are four commands that you can use to run code from your editor in the Julia REPL:
33
33
34
34
-`Julia: Execute Code in REPL`
35
-
-`Julia: Execute Code Cell in REPL`
35
+
-`Julia: Execute Code Cell in REPL` / `Julia: Execute Code Cell in REPL and Move`
36
36
-`Julia: Execute File in REPL`
37
37
-`Julia: Run File in New Process`
38
38
@@ -46,7 +46,9 @@ For most users, this should be their default command to run Julia code in the RE
46
46
47
47
### Julia: Execute Code Cell in REPL
48
48
49
-
The extension provides support for demarking code cells in standard Julia files with a specially formatted comment: `##`. This command will identify in which code cell the cursor in the active editor currently is and then execute the code in that cell. If there are no code cells used in the current file, it will execute the entire file.
49
+
The extension provides support for demarking code cells in standard Julia files with a specially formatted comment: `##` or `# %%`. Either symbol must occur the start of a line and can be followed by text. This command will identify in which code cell the cursor in the active editor currently is and then execute the code in that cell. If there are no code cells used in the current file, it will execute the entire file.
50
+
51
+
Cell delimiters can be specified as regex expressions with the `julia.cellDelimiters` user setting. The default being `["^##(?!#)", "^#(\\s?)%%", "^#-"].
50
52
51
53
This command uses the same code execution techniques as the `Julia: Execute Code Block` command. Include statements, location information etc. all work as expected, that is run with this command.
The extension supports Weave markdown documents with the `.jmd` extension. All Julia code evaluation keybindings and commands should work normally, but cells are defined as fenced Julia code blocks instead (the usual `##` delimiter has no meaning here).
3
+
The extension supports Weave markdown documents with the `.jmd` extension. All Julia code evaluation keybindings and commands should work normally, but cells are defined as fenced Julia code blocks instead (the usual `##`/`# %%` delimiters have no meaning here).
4
4
5
5
The `Julia Weave: Open Preview` command to weave the current file to a temporary HTML document, which will then be displayed in the editor. `Julia Weave: Save to File...` allows you to select the output format and will save the weaved document next to the source file.
0 commit comments