mirror of
https://gitee.com/zhangsken/AndroidIDE.git
synced 2026-10-16 07:49:44 +08:00
docs(editor): add basic info about snippets
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
# Java Snippets
|
||||
Executable
BIN
Binary file not shown.
|
After Width: | Height: | Size: 272 KiB |
Reference in New Issue
Block a user