Your First Code for IBM i Contribution
Fork Code for IBM i, run the extension from source in VS Code, and turn a small, tested change into your first pull request.
The first time you build Code for IBM i, the best place to start is a step you had to figure out for yourself. If you had to hunt for the right VS Code menu, you already have a candidate for a README improvement. This walkthrough takes that small change from your laptop to a pull request someone else can review.
Code for IBM i is the open-source VS Code extension that brings RPG, CL, COBOL, and other IBM i development into the editor. In this guide, you’ll launch the extension from your own checkout and practice with a one-file change you can verify without an IBM i connection.
From fork to pull request
Fork → Clone → Install → Run Extension → Tests → Change → Pull request
Before you start
- Have a GitHub account, Git, and Visual Studio Code.
- Install Node.js and npm on the computer where you’ll run VS Code. Node.js 22 matches the extension’s GitHub Actions test workflow.
- If you’re changing code that interacts with IBM i, arrange access to a non-production IBM i system for testing. A README change and a local launch are enough to practice the workflow.
If you already have a fix in mind, check whether someone is working on it. To look for a small code change, start with the project’s good first issues.
1. Fork the repository
Open the Code for IBM i extension repository and select Fork. Choose your GitHub account as the owner and select Create fork. The fork gives you a copy on GitHub where you can push your own branch. If you already have a fork, use Sync fork on its default branch before starting.
2. Clone your fork
Open a terminal and replace YOUR-USERNAME with your GitHub username. This downloads your fork and moves the terminal into the project folder.
git clone https://github.com/YOUR-USERNAME/vscode-ibmi.git
cd vscode-ibmi
3. Install the dependencies
Run this from the folder containing package.json. Use the same folder for the later Git and npm commands.
npm install
4. Run the extension
- In VS Code, choose File > Open Folder and open the cloned
vscode-ibmifolder. - Open Run and Debug in the Activity Bar, choose Run Extension from the configuration menu, and click the green start button.
- After the build, switch to the new Extension Development Host window. Look for the IBM i icon in its Activity Bar. This window is running the extension from your checkout.
If Run Extension is missing, make sure you opened the folder containing both package.json and .vscode/launch.json. If the window never opens, check the build task’s terminal for the first error. VS Code’s guide to running an extension
5. Check the baseline
Before editing, try the behavior you plan to change. For the README example, read the Building from source section and note exactly which instruction made you stop. For a bug, write down the steps, what happened, and what you expected to happen so you can repeat the same test after the fix.
Choose the check that fits your change
| What you changed | How to check it |
|---|---|
| README instructions | Preview the Markdown, check any links you edited, and follow the revised steps in a fresh VS Code window. |
| Extension API or IBM i behavior | Run the backend Vitest suite against a non-production IBM i system. |
| VS Code commands or UI tied to a connection | In Run and Debug, start Extension Tests (All) and connect from the Extension Development Host to a non-production IBM i system. Use a test-only temporary library and IFS directory. The tests start after you connect. |
For the backend suite, copy src/api/tests/.env.sample to src/api/tests/.env. Set VITE_SERVER and VITE_DB_USER for your test system. Use VITE_DB_PASS for password authentication or follow the sample’s directions for using an SSH key or agent. Set VITE_DB_PORT if SSH uses a port other than 22, and point VITE_TEMP_LIB to a library reserved for testing. The suite creates and removes test objects and files. Keep the populated .env out of your commits. Test environment sample
From the repository root, run the backend suite.
npm run test
6. Make one small change
Create a branch so your edit is easy to review on its own.
git switch -c docs/clarify-extension-launch
In README.md under Building from source, try replacing a terse launch instruction with one readers can follow. Check the current README first and use this example if that detail still needs clarification.
In VS Code, open Run and Debug, select Run Extension, and click the green start button. When the Extension Development Host window opens, look for the IBM i icon in its Activity Bar.
Open the Command Palette, run Markdown: Open Preview on the README, and follow your new instructions from a fresh VS Code window. You should be able to find the launch configuration and see the IBM i icon without having to guess which window to look at.
For a code change, restart the debug session to load your edit, repeat your baseline steps, and run the relevant tests again. Put new UI text in the localization bundle and capture before-and-after screenshots for UI changes. Code for IBM i pull request guidelines
7. Open a pull request
Review the README diff before you stage it. For a different change, substitute your own file path, branch, and commit message.
git status --short
git diff --check
git diff -- README.md
git add README.md
git commit -m "Clarify how to launch the extension"
git push -u origin docs/clarify-extension-launch
On GitHub, select Compare & pull request. If the banner doesn’t appear, start a new pull request in the original repository and choose compare across forks. The base should be codefori/vscode-ibmi:master, and the compare branch should be docs/clarify-extension-launch on your fork. GitHub’s guide to pull requests from forks
Use the project’s pull request template. Here’s an example for a README edit after you’ve run the checks.
### Changes
Clarified where to find Run Extension and what to look for after it starts.
### How to test this PR
1. Open README.md in Markdown Preview and find Building from source.
2. Follow the updated steps from a fresh VS Code window.
3. Confirm the Extension Development Host shows the IBM i icon.
Verified the Markdown preview and local launch. No IBM i connection was needed.
Complete the applicable items in the template’s Checklist, link any related issue, and skim Files changed before submitting. If a maintainer asks for a follow-up, commit and push it to the same branch. GitHub updates the pull request automatically.
If the improvement belongs in the published Code for IBM i documentation, send it to the Code for IBM i docs repository. Its developer guide includes instructions for previewing the docs locally. Developing the docs
References
Documentation and supporting sources for this article.

Comments
Share your thoughts, questions, or real-world IBM i experiences related to this article.