Launch and sync your Ren'Py game at the current line directly from inside Visual Studio Code.
The extension provides many commands to interact with Ren'Py. You probably want to know about the following:
Command | Shortcut | Shortcut (Mac) |
---|---|---|
Start Ren'Py project | Alt+Shift+L | ⌘+Shift+L |
Open Ren'Py at the current line | Alt+Shift+E | ⌘+Shift+E |
Open Ren'Py at label | Alt+Shift+J | ⌘+Shift+J |
Go to current Ren'Py line | Ctrl+Shift+E | ⌥+Shift+E |
Toggle following cursor mode | Alt+Shift+C | ⌘+Shift+C |
The commands can be triggered in several ways:
Renpy: Open Ren'Py at current line
You must set renpyWarp.sdkPath
to a
directory where the Ren'Py SDK can be found. If you haven't done so, a prompt
will appear to inform you to set it.
You may want to customize what to do with an open Ren'Py instance when a new command is issued. In Renpy Launch and Sync, this is called a "strategy".
The strategy is controlled with the setting
renpyWarp.strategy
, which can be
set to one of the following values:
When a command is issued, replace an open editor by sending a
renpy.warp_to_line()
command to the currently running
Ren'Py instance
Renpy Launch and Sync can keep its cursor in sync with the Ren'Py game. The
direction of this sync can be controlled with the setting
renpyWarp.followCursorMode
Cursor syncing can be turned on by default with the setting renpyWarp.followCursorOnLaunch
.
When a warp occurs, you may want the Ren'Py window to be focused. This can be
configured with the setting
renpyWarp.focusWindowOnWarp
.
You might be prompted to allow Visual Studio Code to control other applications when this setting is enabled. After allowing this, restart Visual Studio Code to apply the changes.
Ren'Py 8+ is fully supported.
Ren'Py 7 and earlier does not support RPE features.
In order to use the current line/file feature, your game must be compatible with warping as described in the Ren'Py documentation. This feature has several limitations that you should be aware of, and as such may not work in all cases.
The icon for this extension is a cropped rendition of the Ren'Py mascot, Eileen, taken from the Ren'Py website.