What is VISUAL STUDIO CODE?
Microsoft Visual Studio Code, “a free-editor that helps the programmer write code, helps in debugging and corrects the code using the intelli-sense method”:
In normal terms, Visual Studio Code helps programmers to write program code in a free, open source code development environment.
Extend Visual Studio Code with Extensions
Extensions enable additional languages, themes, debuggers, commands, and more.
CS Code’s extension marketplace is growing vibrant community where developers share their secret sauce to improve source code development workflow.
What is the VISUAL STUDIO CODE extension for IBM i?
The IBM i Code extension adds support for IBM i Languages to the VS Code application.
For us IBM i Software Developers we can install Visual Studio Code and then download and install the IBM i extension from the VS Code Marketplace to add full DDS, CL and RPG support for this excellent code editor.
Once installed, Visual Studio Code now using the IBM i extension, enhances and improves the code editing experience in the style of full commercial tools like Rational Developer for IBM i.
Quite deliciously, it offers many of the commercial RDi advantages without the painful IBM price tag.
Install CODE for IBM i
(1) Install Microsoft Visual Studio Code
Grab the latest version from Visual Studio Code – Code Editing. Redefined
Installing Visual Studio Code is easy and straightforward:
Once you have it installed, setup the environment in your preferred layout with colour schemes and environment.
You can now use VS Code for writing your program source code with all the main languages.
But, we now want to add the ability to write code on our IBM i System, so let’s browse the language extensions.
(2) Install Code for IBM i from the Visual Studio Marketplace
Select your extension – starting with “CODE FOR IBM i” and dive straight in:
After installing, note the instructions are all on the right hand side.
These show you how to connect to your IBM i system, open your first source file and edit your source code.
Make sure you setup your library list correctly the you can compile code too.
For example – connect to your IBM i like this:
To connect to an IBM i:
- The IP address or the hostname of the system
- Your user profile name
- Either a password or a SSH key
Code for IBM i connects to the system over SSH, so the SSH Daemon must be started on your IBM i:
After you install the Code for IBM i extension click the IBM i icon in the side bar, tThen click the “Connect to an IBM i” button:
Complete the IBM i Login dialog (you need either a password or a private key). Next time you click on the IBM i icon you will see one or more IBM i servers:
Click your system name to connect and you will see your jobs *LIBL, a selected range of libraries to work with source files (default is QSYSINC) and an Integrated File System (IFS) browser if you wish to access source code that is stored in the IFS:
Most sites store source code in Source File, even if more and more are moving to the IFS for future developments.
To access your your source code, add the library and source file that you want to edit on the left hand side. When you click on the file name it will show all the source members and you can easily jump to the source members that you want to edit by typing in the subset:
Edit your source and dive into a clean modern code edit experience!
From old fashioned SEU
to a modern IDE:
What would you prefer?