Insert Main

Parent Previous Next

Insert Main.

Now we will open the editor and edit the content of the file:

» Select the source file Main in the Project Explorer

» Either double-click this node or click the menu item File > Open Editor.

Now the tab-page Main is opened in the editor.

Insert Code Snippet.

The source code must always have a Main class with a Main function. This is the Main Entry Point at which execution always starts.

Instead of writing this manually, we use a code snippet:

» Position the cursor in a top-left position within the editor area of the tab-page.

» Press Ctrl+J or click the menu item Edit > Insert Snippet.

» Select the snippet as presented in the picture and press Enter or double-click.

Now the editor contains:

Class Main


 Public Function Main(Integer x, y, z) : Integer




Next: Modify Source Code