Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "EDT:EGL Editor Introduction"

(Three types of content assist proposals in EGL)
Line 17: Line 17:
  
 
==Three types of content assist proposals in EGL==
 
==Three types of content assist proposals in EGL==
#Keyword Proposals
+
#Keyword Proposals:This proposal type only provides EGL Keywords which can be used at the current cursor position.
This proposal type only provides EGL Keywords which can be used at the current cursor position.
+
#Reference Proposals:This proposal type provides proposals like variables defined in the context,System type,library,functions which can be used at the current cursor position.
#Reference Proposals
+
#Template Proposals:Template proposal type provide predefined code snippet,like function definition code, externaltype definition code etc.
This proposal type provides proposals like variables defined in the context,System type,library,functions which can be used at the current cursor position.
+
#Template Proposals
+
Template proposal type provide predefined code snippet,like function definition code, externaltype definition code etc.
+

Revision as of 05:32, 4 January 2012

Introduction

EGL editor is base on eclipse to provide specialized features for editing EGL code. Associated with the editor is a EGL-specific Outline view, which shows the structure of the active EGL Part. It is updated as the user edits the EGL file. The EGL editor includes the following features:

  • Syntax highlighting
  • Content/code assist
  • Code formatting
  • Import assistance(Organize import)
  • Quick fix
  • Integrated debugging features

In this blog I will introduce some features to improve the EGL development efficiency

  1. Use Content Assist to improve development efficiency
  2. Quick fix/Quick Assist
  3. Navigation between EGL parts
  4. Vertical ruler

Use Content Assist to improve development efficiency

Content assist helps you to quickly define variable, function or finish a line of code in the EGL editor. The content assist is context sensitive, which means that the proposals listed in the dialog is different with the cursor position changing. In the EGL editor press Ctrl + Space or Alt + “/”(Can be configured) on to trigger the content assist.This will open a list of available code completions.

Three types of content assist proposals in EGL

  1. Keyword Proposals:This proposal type only provides EGL Keywords which can be used at the current cursor position.
  2. Reference Proposals:This proposal type provides proposals like variables defined in the context,System type,library,functions which can be used at the current cursor position.
  3. Template Proposals:Template proposal type provide predefined code snippet,like function definition code, externaltype definition code etc.

Back to the top