RevSyntax is a Vscode extension supporting the RevBayes language
- Open the Extensions view in Visual Studio Code (
Ctrl+Shift+XorCmd+Shift+X). - Search for Revbayes Syntax Highlight.
- Click the Install button.
- If the extension does not activate immediately, it is recommended to reload Visual Studio Code (
Ctrl+Shift+PorCmd+Shift+Pand typeReload Window).
The following features are exclusively available for files with the .rev and .Rev extensions.
RevSyntax automatically applies syntax highlighting to your RevBayes code.
You can customize the color theme used for syntax highlighting through Visual Studio Code's preferences: File > Preferences > Theme > Color Theme.
RevSyntax integrates a "Send to Terminal" functionality, similar to that found in R language support extensions.
First, run revbayes in a VScode terminal, then you will be able to send highlighted code to the terminal with (Ctrl+Enter or Cmd+Enter).
( Note: The extension can still send code to the terminal even if RevBayes is not running. Make sure you've launched RevBayes to avoid unexpected behavior ).