InterSystems ObjectScript is a programming language that is used in InterSystems databases such as InterSystems IRIS and Caché. Visual Studio Code (VSCode) is a popular text editor that can be used to write and edit ObjectScript code.
Go to the Activity Bar on the far left-hand side and click on the Extensions
tap.
Type in the search bar InterSystems and then install the InterSystems ObjectScript Extension Pack . This Extension pack includes:
To provide correct color highlighting when working with Objectscript choose a InterSystems Color Theme.
File > Preferences > Color Theme
InterSystems Default Dark
or InterSystems Default Light
.InterSystems Tools
tap in the Activity Bar.All Servers
If you want to create a new Server connection click on the +
button in the top and then fill in the connection properties:
Enter
to leave empty.After successfully adding a new Server you can see the Server under All Servers
.
Tip: You can edit your Server Properties under:
...
in the top right corner> Edit Settings > InterSystems: Servers > Edit in settings.json
.
Everytime you close Visual Studio Code and reopen it, it will prompt you a message to log in with your credentials. To avoid this you can store your credentials:
Example:
"default~iris": {
"webServer": {
...
},
"username":"<your-username>",
"description": "Connection to local InterSystems IRIS™ installed with default settings."
}
Sign Out
Delete
when asked to delete passwordInterSystems Tools
tap in the Activity Bar.Explorer
tap in the Activity Bar.Add Server Namespace to Workspace
.+
in the top right corner of the dialog.Once you have connected to a Namespace, you can begin writing ObjectScript code. Here are the basic steps for doing so:
.cls
file extension (for example, MyPackage.MyClass.cls
)You can also create other files with the extension .mac, .inc etc.
When you want to have a look inside your database without leaving Visual Studio Code, you can use the SQLTools extension.
Add New Connection
Connect Now
and you will see a new connection under ConnectionsRun on active connection
ORby Philipp B.