CodeEditor Plugin

  • Authors: null
3 votes
Dependency:
compile ":code-editor:0.2.4"

 Documentation

Summary

Installation

  • in command prompt, under your project directory
    grails install-plugin code-editor
  • access the console under ${contextPath}/code, e.g. http://localhost:8080/yourApplication/code
  • Supported versions after 1.0.3 including 1.1

Description

CodeEditor is a simple Web Based IDE for Grails. It enables users to edit serverside code from web. It has syntax highlighting capability, code completion functionality (Only for groovy), file create/edit/load operations.

Latest Version

http://plugins.grails.org/grails-code-editor/tags/RELEASE_0_2_4/grails-code-editor-0.2.4.zip

Installation

  • in command prompt, under your project directory
    grails install-plugin code-editor
  • access the console under ${contextPath}/code, e.g. http://localhost:8080/yourApplication/code
  • Supported versions after 1.0.3 including 1.1

Configuration

You can configure CodeEditor functionality and features from CodeEditorConfig.groovy file.
  • codeCompletionEnabled : enable/disable code completion feature. If it is disabled no suggestion indexing will be performed and code suggestions will not be sent to ui (default:true)
  • jarFilePaths : The jar files which will be loaded to suggestion index. If the file specified is a directory all the jar files in that directory will be loaded.
  • classFileDirectories : path of directories containing class files. All classes under this directory will be loaded to suggestion index. The package names will be determined according to the relative path of files to specified class directory.

Usage

Editing-Syntax Highlighting-Code Completion

  • Currently code completion is available only for groovy files
  • When user pressed ctrl+space completion suggestions will be shown
  • Variables and methods available to current scope, classes and their methods and properties will be shown in completion dialog
  • User can navigate with arrow keys
  • Users can select any of the suggestions by pressing enter key
  • Suggestions will be sent from server side. After suggestions are received by client they will be filtered further while user continues to edit.

Creating/Loading/Saving File

Open File Dialog

Save File Dialog

Tools

Search and Replace

Go To Line

Shortcut Keys

  • Ctrl+S - Save current document
  • Ctrl+Q - Close current file
  • Ctrl+Shift+F4 - Close current file
  • F3 - Continue to search while search and replace dialog is open

SVN Location

http://svn.codehaus.org/grails-plugins/grails-code-editor

Issues

  • Go to
http://jira.codehaus.org/browse/GRAILSPLUGINS
  • Click create issue link
  • Select Grails-CodeEditor as component and create issue
Author Enguzekli (http://enguzekli.wordpress.com)