Using comment completion

In this section you will use comment completion to add vjo comments for property, method and variable.

Comment Completion for Property

  1. Please make sure the VJET file Test.js is opened in your editor area.
  2. You can copy following lines into the beginning of the protos section.
    accountName : 'Peter',        
    
  3. When you press CTRL+SPACE after the //< or //>. The content assist window with a list of proposals will appear.

    Comment Completion for Property

Comment Completion for Method

  1. You can copy following lines into the end of the props section.
    main : function(args){
    	vjo.sysout.print('');
    }       
    
  2. When you press CTRL+SPACE after the //< or //>. The content assist window with a list of proposals will appear.

    Comment Completion for Method

Comment Completion for Variable

  1. You can copy following lines into the body of the main method.
    var arg = args[0];        
    
  2. When you press CTRL+SPACE after the //< or //>. The content assist window with a list of proposals will appear.

    Comment Completion for Variable

Related reference