A VS Code extension for JavaFX development with FXML support.
- 🎨 FXML Syntax Highlighting - Full syntax highlighting for
.fxmlfiles - 🏗️ FXML Language Mode - To open
.fxmlfile in Scene Builder, select 'Open in Scene Builder' from the context menu - 🔧 Scene Builder Integration - Configure Scene Builder path and open FXML files directly in Scene Builder
- 📐 Formatter - You can use an XML formatter specifically designed for FXML
- 🔗 FXML → Controller Navigation - Ctrl+Click on
fx:controller,onAction, orfx:idin FXML to jump to the corresponding code in the Controller class - 🔗 Controller → FXML Navigation - Ctrl+Click on
@FXMLannotated variables or methods in the Controller class to jump to the corresponding location in the FXML file - 🌐 Internationalization - English, Chinese, Japanese language support
- Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Search for "Tlcsdm JavaFX Support"
- Click Install
- Download the latest
.vsixfile from Releases - Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Click the
...menu and select "Install from VSIX..." - Select the downloaded
.vsixfile
Download from Jenkins
Open any .fxml file and it will automatically use the FXML language mode with syntax highlighting.
- Open an
.fxmlfile in VS Code - Right-click in the editor or file explorer
- Select "Open in Scene Builder"
- Open an
.fxmlfile - Use
Shift+Alt+F(or your configured format shortcut) to format the document
FXML → Controller:
- Ctrl+Click on
fx:controller="com.example.MyController"to open the controller class - Ctrl+Click on
fx:id="myButton"to jump to the@FXMLannotated field - Ctrl+Click on
onAction="#handleClick"to jump to the@FXMLannotated method
Controller → FXML:
- Ctrl+Click on an
@FXMLannotated field to jump to thefx:idin the FXML file - Ctrl+Click on an
@FXMLannotated method to jump to the event handler in the FXML file
| Setting | Description | Default |
|---|---|---|
tlcsdm.javafxSupport.sceneBuilderPath |
Path to Scene Builder executable | "" (auto-detect) |
- Node.js 22.x or later
- npm
# Install dependencies
npm install
# Compile
npm run compile
# Watch mode (for development)
npm run watch
# Lint
npm run lint
# Package
npx @vscode/vsce package
# Test
npm run test
# Package extension
npx @vscode/vsce packageMIT License - see LICENSE for details.
Contributions are welcome! Please feel free to submit a Pull Request.