docs(editor): add basic info about snippets

This commit is contained in:
Akash Yadav
2023-04-10 09:54:12 +05:30
parent a23617d27a
commit e1d3ab8bb1
3 changed files with 14 additions and 1 deletions
+13 -1
View File
@@ -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.
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.
<details>
<summary>Java snippets in code completions</summary>
<img src="../images/java_snippets.png" width="250"/>
</details>
+1
View File
@@ -0,0 +1 @@
# Java Snippets
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 272 KiB