Skip to content

Commit 9d9be93

Browse files
committed
Instructions for diagrams to open below
1 parent b8a9cc5 commit 9d9be93

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
565 Bytes
Loading

docs/tools/code-extension.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import Image from '@theme/IdealImage';
77
import lingo_packages from '../assets/images/vs_code/lingo_packages.png';
88
import local_libraries from '../assets/images/vs_code/local_libraries.png';
99
import error_message from '../assets/images/vs_code/error_message.png';
10+
import diagram_icon from '../assets/images/vs_code/diagram_icon.png';
1011

1112
The Lingua Franca extension for Visual Studio Code (VS Code) provides syntax-directed editing capability, compilation, diagram synthesis and a package explorer for Lingua Franca programs.
1213

@@ -57,6 +58,19 @@ To open an existing LF project in VS Code, select the [package root](../glossary
5758

5859
To show the diagram for the currently active Lingua Franca file, click on the diagrams icon at the upper right:
5960

61+
<Image img={diagram_icon} style={{maxWidth: 400}} />
62+
63+
By default, the diagram is rendered to the right of the editor.
64+
This is usually inconvenient because the diagrams tend to be wide.
65+
You can drag the diagram to the bottom, or, more usefully, change the default.
66+
67+
1. Go to Preferences>Settings
68+
2. Go to workspace, user or folder settings whatever you prefer.
69+
3. Search for "workbench.editor.openSideBySideDirection".
70+
4. Change the setting to down.
71+
72+
See also [side-by-side editing](https://code.visualstudio.com/docs/getstarted/userinterface#_side-by-side-editing) and a [video demo](https://github.com/user-attachments/assets/3956358c-d681-4a23-a60a-47f4b123b8eb).
73+
6074
### Compilation
6175

6276
To compile the `.lf` source, open the command palette (<kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd>) and then enter `Lingua Franca: Build`.

0 commit comments

Comments
 (0)