diff --git a/docs/editor/code_editor.md b/docs/editor/code_editor.md index 290c8b402..b257689fb 100644 --- a/docs/editor/code_editor.md +++ b/docs/editor/code_editor.md @@ -3,6 +3,7 @@ AndroidIDE uses [sora-editor](https://github.com/Rosemoe/sora-editor) as it's code editor. Syntax highlighting in the editor is provided with the help of lexers generated using ANTLR4. ## Key Bindings + When working with a physical keyboard, you can use use key bindings for performing various text actions. The editor provides support for some key bindings by default. The currently supported key bindings are mostly similar to Android Studio/Intellij IDEA. @@ -32,4 +33,15 @@ As of now, only [Java code actions](./java_code_actions.md) are available. ## Color schemes You can define your own color schemes that can be used in the editor. The color schemes are defined with JSON files. [Learn more](./color_schemes.md) about how to -define your own color schemes. \ No newline at end of file +define your own color schemes. + +## Snippets + +Code snippets are essentially pre-defined pieces of code that can be inserted into a project with a few clicks. In AndroidIDE, these snippets are presented in the code completion window, which appears as a dropdown menu when the user starts typing in the code editor. When the user selects a snippet from the list, the IDE inserts the corresponding code block into the editor at the current cursor position. + +As of now, only Java Snippets are available. + +
+ Java snippets in code completions + +
diff --git a/docs/editor/java_snippets.md b/docs/editor/java_snippets.md new file mode 100644 index 000000000..bed6da7fc --- /dev/null +++ b/docs/editor/java_snippets.md @@ -0,0 +1 @@ +# Java Snippets diff --git a/docs/images/java_snippets.png b/docs/images/java_snippets.png new file mode 100755 index 000000000..c507636f6 Binary files /dev/null and b/docs/images/java_snippets.png differ