Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>d2-arrowNew to Visual Studio Code? Get it now.
d2-arrow

d2-arrow

awtnb

|
335 installs
| (0) | Free
utils for d2 arrow operator.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

d2-arrow README

Utils for d2 file.

Features

d2-arrow.continue (alt+enter)

img

Insert new line so that the d2 operators (->, <-, --, <->) continue from current line. The new line consists of the following elements:

  • The last element of previous line
  • The last operator of previous line

d2-arrow.branch (alt+shift+enter)

img

Insert new line so that the line is a branch of current line. The new line consists of the following elements:

  • One element before the last element of previous line
  • The last operator of previous line

d2-arrow.swap

img

  • Swaps elements before and after the operator.
  • With text selection, the first and last elements of the selection are swapped.
  • If selection is empty, the first and last elements of the line are swapped.

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft