Seiden Group
Modern Development & Open Source for IBM i
  • Link to LinkedIn
  • Link to Mail
  • Home
  • Seiden PHP+
    • Seiden PHP+
    • Install & Learn
    • SmartSupport
    • PHP Migrations & Upgrades
    • Success Stories
    • Free PHP Assessment
    • Documentation
    • What’s New (Changelog)
  • IBM i Services
    • Development
    • Training & Mentoring
    • Open Source Setup & Upgrades
    • SSL/TLS Install & Learn
    • Performance
  • Support
    • Open Source & PHP
    • VS Code for i
    • Developer Support
    • Support Success Stories
  • VS Code for i
    • Support
    • Training
    • Code for i Resource Guide
    • Getting Started Videos
    • Code for IBM i Fridays
  • Free Stuff
    • IBM i Strategy & Tips
    • PHP Upgrade Assessment
    • CNX Valence Assessment
    • VS Code for IBM i Resources
    • Code for IBM i Fridays
    • QCachegrind Download
    • PHP Toolkit for IBM i Resources
    • Qshell on i Library
  • Blog
  • About
    • About Our Team
    • About Alan Seiden
    • Speakers & Sessions
    • In the News
  • Contact
  • 201.447.2437
  • Search
  • Menu Menu

Seiden Group Blog

RPGLE Linting and Content Assist with VS Code for IBM i

November 29, 2021/8 Comments/in RPG, VS Code for i /by Liam Barry Allan

vscode-rpgle extensionA great IDE contains features that increase your coding speed and accuracy so you can focus on your program’s logic. One of my favorite productivity enhancers, content assist, has been bundled in Visual Studio Code for IBM i since its inception. Content assist gives you autocomplete options for code as you write it, reducing syntax errors.

Today we’re announcing a new killer productivity tool for Code for IBM i—a built-in linter!

A linter is a static code analysis tool used to flag programming errors, bugs, stylistic errors and suspicious constructs. It’s like a giant lint roller, but one that captures sloppy code rather than cat hairs. Some linters already existed for RPGLE, like rpglelint, which was a big inspiration for this extension feature.

Our linter has many lint options, including:

  • Indentation, which is detected automatically by VS Code
  • Requiring brackets around IF, WHEN, etc. operations
  • Ensuring that variable references match the way they are defined

For more RPG linter options, refer to the documentation for popular RPG linter options and the full list of linter options.

The new RPGLE Language Tools extension

With the addition of linting to content assist and other Code for IBM i language tools, we decided to move all the VS Code for IBM i language tools into an optional extension with its own code base. This made sense for many reasons, including the size of the code base required to parse RPGLE source.

So, as of just a few days ago, you can now download the new RPGLE language tools extension (codename vscode-rpgle) from the Visual Studio Code Marketplace. The extension adds a magnitude of functionality for writing free-format RPGLE, such as:

  • Content assist
  • Outline view
  • Fixed format column assist
  • and now . . . linting!

Getting started with RPGLE linting

The RPGLE language tools extension depends on Code for IBM i to access source code from /copy and /include statements, so make sure you have already installed Code for IBM i. From there:

  1. Install RPGLE language tools from the Marketplace
  2. Open the VS Code settings (Control / Command + Comma)
  3. Search for vscode-rpgle and enable Linter Support
  4. Connect to your IBM i using Code for IBM i
  5. Right click on a library filter and select ‘Open RPGLE lint configuration’
image

Right click on a library filter and select ‘Open RPGLE lint configuration’

If the lint configuration doesn’t exist, it will prompt you to create one. This feature will create a source file called vscode in the chosen library, and rpglint.json inside of that source file. It will be created with some default options turned on. This is not an opinionated linter, but we default with the most useful ones enabled.

From there, you can open any **FREE RPGLE source code and expect the linter to do the job!

image
Do you have ideas for other enhancements to VS Code for IBM i? Tell me about them!

  • Code for IBM i: https://github.com/halcyon-tech/vscode-ibmi
  • RPGLE language tools: https://github.com/halcyon-tech/vscode-rpgle

For additional information on Code for i, see Visual Studio Code for IBM i: A Resource Guide.

Tags: IBMi development, IDE, RPG, Visual Studio Code
Share this entry
  • Share on Facebook
  • Share on X
  • Share on Pinterest
  • Share on LinkedIn
  • Share on Tumblr
  • Share on Reddit
  • Share by Mail
https://www.seidengroup.com/wp-content/uploads/2017/03/SeidenLogo-180.png 0 0 Liam Barry Allan https://www.seidengroup.com/wp-content/uploads/2017/03/SeidenLogo-180.png Liam Barry Allan2021-11-29 17:30:302024-02-29 17:45:30RPGLE Linting and Content Assist with VS Code for IBM i
Liam Barry Allan

About Liam Barry Allan

Liam Allan, IBM Champion and consultant with Seiden Group, helps IBM i development teams transform their applications and bridge the gap between traditional and modern ...Read More

8 replies
  1. Adolfo López
    Adolfo López says:
    February 14, 2025 at 11:07 am

    Excellent tool. Developing in RPG with VS Code is definitely amazing.

    Reply
  2. Luis Alberto Zapata Arango
    Luis Alberto Zapata Arango says:
    July 19, 2024 at 1:39 pm

    buenas tardes… no me esta funcionando el Linter para Rpg lo configuro pero no me muestra los errores o cambios en el código

    Reply
  3. Kevin Schreur
    Kevin Schreur says:
    February 14, 2024 at 2:44 pm

    Is there a full list of Linter options and what they do?

    Reply
    • Alan Seiden
      Alan Seiden says:
      February 16, 2024 at 11:20 am

      Kevin, yes, most Linter options are listed here: https://codefori.github.io/docs/#/pages/extensions/rpgle/linter?id=lint-options
      And for the always updated list, check here: https://github.com/codefori/vscode-rpgle/blob/main/schemas/rpglint.json

      Reply
  4. Jon Paris
    Jon Paris says:
    February 1, 2023 at 7:24 pm

    The link at “So much more!” is broken – it gives a 404.

    Reply
    • Alan Seiden
      Alan Seiden says:
      February 2, 2023 at 2:23 pm

      Thanks, Jon! Link has been corrected.

      Reply
  5. David Knittle
    David Knittle says:
    December 29, 2021 at 10:40 am

    The VSCODE file gets created and the member within, but the member is empty. Does not seem to be a security issue. i can update the member outside of VSCODE. I am looking forward to trying the linter!

    Reply
    • Alan Seiden
      Alan Seiden says:
      December 29, 2021 at 11:00 am

      HI, David, please document your issue at https://github.com/halcyon-tech/vscode-ibmi/issues and Liam can take a look. Include a screen shot if you can, to make it clear what’s happening.

      Reply

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

SUBSCRIBE
Open Thinking
Monthly IBM i Strategy & Tips
  • This field is for validation purposes and should be left unchanged.

IBM i Development

  • RPG, COBOL, SQL, Node,
    PHP, Python, Valance, etc.
  • Modernization. Integration.
  • Web and API Solutions
  • Legacy Maintenance
    ...
LET'S GET IT DONE!

Recent Posts

  • PHP Security Updates for November 2026
  • Still Running Net.Data on IBM i? We Can Help
  • Mitigating the eMudhra Intermediate CA Compromise with IBM i
  • Critical php2shell Security Update Available in Seiden PHP+ Server
  • Moving to IBM i 7.6? An SDA Alternative with VS Code and IBM Bob
  • What’s New with Mapepire Database Connector for IBM i
  • Do You Need IBM i Observability?
  • PHP 8.6 is Coming Soon to IBM i
  • Safer npm installation is on the way for Node.js (and all JavaScript)
  • Protecting IBM i and Web Applications from Modern Threats

SEIDEN GROUP: Modern Development & Open Source for IBM i

Home   |   Seiden PHP+   |   IBM i Services  |   Support   |   VS Code for i   |   Free Stuff   |   Blog  |   Privacy Policy  |   Contact         201.447.2437

© 2026 Seiden Group, LLC
  • Link to LinkedIn
  • Link to Mail
Link to: Optimize Your IBM i Web Application Using FastCGI Link to: Optimize Your IBM i Web Application Using FastCGI Optimize Your IBM i Web Application Using FastCGI Link to: PHP 8.1 Released for IBM i Link to: PHP 8.1 Released for IBM i PHP 8.1 Released for IBM i
Scroll to top Scroll to top Scroll to top