💻 Nexus IDE Setup Guide
Visual Studio Code (Recommended)
VS Code is the recommended IDE for developing with Nexus (Octave MATLAB Compatibility). It provides excellent support for MATLAB/Octave syntax, debugging, and extensions.
Step 1: Install VS Code
- Download VS Code from code.visualstudio.com
- Install VS Code on your system
- Launch VS Code
Step 2: Install MATLAB Extension
- Open VS Code
- Click the Extensions icon in the sidebar (or press
Ctrl+Shift+X) - Search for "MATLAB"
- Install the "MATLAB" extension by MathWorks
- Alternatively, install "Octave" extension for Octave-specific support
Step 3: Configure Nexus Path
- Open VS Code Settings (
Ctrl+,orCmd+,on Mac) - Search for "matlab" or "octave"
- Set the MATLAB Path or Octave Path to your Nexus installation:
- Linux:
/usr/local/nexus/bin/octaveor/path/to/nexus/src/octave - Windows:
C:\Program Files\Nexus\bin\octave.exe - macOS:
/usr/local/nexus/bin/octave
- Linux:
- If building from source, use:
/home/bryantaylor/camlogic_repos/nexus/src/octave
Step 4: Open Your Project
- In VS Code, go to File → Open Folder
- Navigate to your Nexus project directory
- Select the folder containing your
.mfiles
Step 5: Verify Setup
- Create a test file
test.m: - Right-click the file and select "Run in MATLAB" or "Run in Octave"
- Check the output panel to verify Nexus is executing your code
% Test Nexus installation
disp('Nexus is working!');
version
VS Code Features for Nexus:
- ✅ Syntax highlighting for MATLAB/Octave
- ✅ Code completion and IntelliSense
- ✅ Integrated terminal for running Nexus
- ✅ Debugging support
- ✅ Git integration
- ✅ Extension marketplace for additional tools
Alternative IDEs
GNU Emacs
Emacs has excellent support for Octave/MATLAB with the octave-mode package.
- Install Emacs:
sudo apt-get install emacs - Install
octave-modevia package manager - Configure
.emacsto load octave-mode for.mfiles
MATLAB Desktop (if licensed)
If you have a MATLAB license, you can use MATLAB Desktop IDE, but Nexus is designed to be a drop-in replacement, so VS Code is recommended.
Command Line Usage
You can also use Nexus directly from the command line:
# Run a script
nexus script.m
# Interactive mode
nexus
# With options
nexus --no-gui script.m
Troubleshooting
VS Code can't find Nexus
- Verify Nexus is installed and in your PATH
- Check the path in VS Code settings matches your installation
- Restart VS Code after changing settings
Extension not working
- Ensure the extension is enabled
- Check VS Code output panel for errors
- Try reloading the window (
Ctrl+Shift+P→ "Reload Window")
Syntax highlighting issues
- Ensure file has
.mextension - Manually set language mode:
Ctrl+K M→ "MATLAB" or "Octave"