Difference between revisions of "VMS IDE Project Configuration"

From VSI OpenVMS Wiki
Jump to: navigation, search
openvms>Sergey.vorfolomeev
(Settings description)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
=Workspace=
 
=Workspace=
When starting working on an OpenVMS project in the '''VMS IDE''', you need to configure your workspace, set project folders, and select the type of configuration that will be used.
+
When starting working on a project in the '''VMS IDE''', you need to configure your workspace, set project folders, and select the type of configuration that will be used.
  
 
==Project folder==
 
==Project folder==
Line 59: Line 59:
  
 
=Project Configuration=
 
=Project Configuration=
To open the project settings, press <code>F1</code> and run the <code>VMS-IDE: Edit OpenVMS project settings</code> command or use [[VMS_IDE_Project_Explorer|'''Project Explorer''']] view.
+
To open the project settings, press <code>F1</code> and run the <code>VMS-IDE: Edit VMS project settings</code> command or use the  [[VMS_IDE_Project_Explorer|'''Project Explorer''']] view.
  
 
==Adjusting Settings==
 
==Adjusting Settings==
Line 68: Line 68:
  
 
==Settings description==
 
==Settings description==
The settings are split into two sections:
+
The settings are split into three sections:
 
* [[Project_Settings|''Project'']] - general project settings  
 
* [[Project_Settings|''Project'']] - general project settings  
 
* [[Synchronize_Configuration|''Synchronize'']] - synchronizer specific settings
 
* [[Synchronize_Configuration|''Synchronize'']] - synchronizer specific settings
* [[Build_Configurations|''Builds'']] - settings for build project (new in version 0.0.22)
+
* [[Build_Configurations|''Builds'']] - build configurations for the project
 +
 
 +
[https://www.youtube.com/watch?v=Ib1Fo6cG1Vs&list=PLewDXk9a8laO3cAZFPyZ4bbgcKsJ1qgPo Video tutorial: VMS IDE 1 Starting a Project]
  
 
[[Category:VMS IDE]]
 
[[Category:VMS IDE]]

Latest revision as of 05:59, 21 January 2020

Workspace

When starting working on a project in the VMS IDE, you need to configure your workspace, set project folders, and select the type of configuration that will be used.

Project folder

Use Explorer view to manage source code, resources, and settings files for your projects.

VMS IDE Explorer
The project folder will store project settings and source files. To add a project folder
  1. Create a folder on your local machine.
  2. In Visual Studio Code, click the Explorer icon (Ctrl+Shift+E) in the Activity Bar
  3. Click Open Folder and select the previously created folder.


If you are working on a complex project with dependencies, you will likely need to add other projects to the current workspace.
For this, just add another project folder as shown below.

  1. Create another folder that will store files of the second project
  2. In Visual Studio Code, select File > Add folder to workspace and select the folder you created.

End of line

Specify the End of Line character that will be used across all source files. You must use LF.

  1. Open Visual Studio Code settings (Ctrl+,)
  2. Navigate to Text Editor > Files > Eol (the default end of line character) and set it to \n.

Type of configuration

Select the type of configuration for your project. The recommended type is FS.

  1. Open Visual Studio Code settings (Ctrl+,)
  2. Navigate to Extensions > VMS-IDE > Config-helper › Settings: Using, and select one of the options:
    • FS - save settings in local JSON files.
    • VFS - save setting in VS Code virtual file system.
    • VCS - manage settings using VS Code provided API.
  3. Press F1 and run the Reload window command or close Visual Studio Code and open it again.
FS and VFS VCS
Syncronizer-settings-fs.png
Syncronizer-settings-vsc.png
Settings are stored in a JSON file that can be easily modified in the editor. Settings can be adjusted using Visual Studio Code settings page.
NOTE: Changing the type of configuration does not copy existing settings from one location to another.

SSH Configuration

The SSH connection to an OpenVMS machine is required for syncing source files, building, and debugging projects. There are two ways of managing SSH connection settings.

Command 
Press F1 and run the VMS-IDE: Edit ssh-helper settings command.
Project Explorer 
  1. Open Project Explorer
  2. Select your project from the list
  3. In the PROJECT DESCRIPTION section, right-click SSH > host and select Edit.

SSH Settings description

See SSH settings for more details.

Project Configuration

To open the project settings, press F1 and run the VMS-IDE: Edit VMS project settings command or use the Project Explorer view.

Adjusting Settings

The project configuration procedure varies depending on the selected type of configuration.

FS or VFS 
The Edit command loads current settings from memory and saves them to vmssoftware.synchronizer-settings.json, then opens the file for editing.
VCS 
The Edit command opens Workspace settings. Navigate to Synchronizer section and adjust the settings.

Settings description

The settings are split into three sections:

  • Project - general project settings
  • Synchronize - synchronizer specific settings
  • Builds - build configurations for the project

Video tutorial: VMS IDE 1 Starting a Project