Skip to content

Commit e2f6844

Browse files
committed
Merge remote-tracking branch 'origin/dev'
2 parents 3128f4e + d61353f commit e2f6844

29 files changed

+1388
-120
lines changed

en/Tutorial/App/installSimulator.md

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
## ios模拟器
99

10-
MacOSX,安装ios模拟器,需要先安装[xcode](https://developer.apple.com/xcode/)
10+
MacOSX,安装ios模拟器,需要先安装[xcode](https://developer.apple.com/xcode/);或在App store中搜索xcode完成安装
1111

1212
xcode安装打开,按下快捷键`command+,`,打开`Preferences`窗口,如下图:
1313

@@ -17,10 +17,33 @@ xcode安装打开,按下快捷键`command+,`,打开`Preferences`窗口,如
1717

1818
<img src="/static/snapshots/tutorial/macosx/xcodeCommandLineTools.jpg" style="border: 1px solid #eee; zoom:45%;border-radius: 25px;"/>
1919

20-
## android模拟器
20+
## 运行App到iOS模拟器
21+
22+
项目管理器,选中要运行的项目,点击工具栏 运行图标,如下图:
23+
24+
<img src="/static/snapshots/app/app_ios_simulator.jpg" style="border: 1px solid #eee; zoom:45%;border-radius: 25px;"/>
25+
26+
27+
运行app项目到iOS模拟器效果如下:
28+
29+
<img src="/static/snapshots/app/app_ios_simulator_run.jpg" style="border: 1px solid #eee; zoom:40%;border-radius: 25px;"/>
30+
31+
## Android模拟器
2132

2233
市场上有很多成熟的Android模拟器,这里就不推荐了。自行搜索安装。
2334

24-
当然,Google官方也有自己的模拟器,您可以通过[Android Studio](https://developer.android.com/studio/install)安装;android studio模拟器如下图所示:
35+
当然,Google官方也有自己的模拟器,您可以在[Android Studio](https://developer.android.com/studio/install)中安装不同版本的模拟器。
36+
37+
android studio模拟器如下图所示:
38+
39+
<img src="/static/snapshots/tutorial/macosx/androidSimulator.jpg" style="border: 1px solid #eee; zoom:45%;border-radius: 25px;"/>
40+
41+
## 运行App到Android模拟器
42+
43+
Android模拟器启动后,HBuilderX会将其识别为名称为`emulator-xxxx`的Android手机,其中的xxxx为模拟器的id如下图:
44+
45+
<img src="/static/snapshots/app/Android-emulator.jpg" style="border: 1px solid #eee; zoom:45%;border-radius: 25px;"/>
46+
47+
运行app项目到android模拟器效果如下:
2548

26-
<img src="/static/snapshots/tutorial/macosx/androidSimulator.jpg" style="border: 1px solid #eee; zoom:45%;border-radius: 25px;"/>
49+
<img src="/static/snapshots/app/Android-emulator-start.jpg" style="border: 1px solid #eee; zoom:35%;border-radius: 25px;"/>

en/Tutorial/App/use-chrome-to-debug-android-apps.md

Lines changed: 361 additions & 0 deletions
Large diffs are not rendered by default.

en/Tutorial/Language/vue-next.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Vue3 Support
2+
> HBuilderX's support for vue3 is still compatible with vue2, this means our enhancement of vue2 can still be used in vue3. See [Vue support](/Tutorial/Language/vue.md) for vue2 support.
3+
4+
## Vue3.x API Hint and Help
5+
6+
The prompt is not only to be complete, but also to be accurate. You can't guess all the words and list them out, there will be what there should be, clear and trustworthy.
7+
8+
Write fast and write well.
9+
10+
In addition to the perfect tips, you can also see a clear help description on the right side of the code assistant, explaining the api, and the api link of the vue official website. Click to go directly to the specified page of the vue official website.
11+
12+
Very suitable for getting start.
13+
14+
<img src="/static/snapshots/vue_next/1.jpg" style="zoom: 30%;border: 1px solid #eee;" />
15+
## Composition API Support
16+
Accurate type derivation of composition functions such as `ref` and `reactive`, and support `go to definition` (Alt + click).
17+
18+
<img src="/static/snapshots/vue_next/2.jpg" style="zoom: 30%;border: 1px solid #eee;" />
19+
20+
<img src="/static/snapshots/vue_next/3.jpg" style="zoom: 30%;border: 1px solid #eee;" />
21+
22+
## State-Driven Dynamic CSS Support
23+
Support the use of v-bind function hint in CSS, variable hint in parameters and `go to definition` (Alt + click).
24+
25+
<img src="/static/snapshots/vue_next/4.jpg" style="zoom: 30%;border: 1px solid #eee;" />
26+
27+
<img src="/static/snapshots/vue_next/5.jpg" style="zoom: 30%;border: 1px solid #eee;" />
28+
29+
## Script Setup Support
30+
The setup syntax recommended by vue3 is also fully supported.
31+
32+
<img src="/static/snapshots/vue_next/6.jpg" style="zoom: 30%;border: 1px solid #eee;" />
33+
34+
## Vars & Functions Hint in Template
35+
Variables defined in data, props and setup and functions defined in methods and setup can suggest and `go to definition`(alt + click) in template.
36+
37+
<img src="/static/snapshots/vue_next/7.jpg" style="zoom: 30%;border: 1px solid #eee;" />
38+
39+
<img src="/static/snapshots/vue_next/8.jpg" style="zoom: 30%;border: 1px solid #eee;" />

en/Tutorial/Language/vue.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ We recommend that developers use the vue single file specification to open vue f
88

99
> Notes: If the file is not under the project, but a separate file, and the grammar library cannot be mounted, please create a project in the project manager on the left and open the file in the project to experience it.
1010
11+
## Vue3 Support
12+
HBuilderX has optimized support for vue3 since v3.2.5 (included). See [vue3 support](/Tutorial/Language/vue-next.md) for details.
13+
1114
## Syntax highlighting
1215

1316
In addition to vue's common syntax highlighting support, HBuilderX also supports various expression syntax, as well as other languages supported by script and style such as less, scss, stylus, typescript and other highlighting, without the need to install plug-ins.
@@ -23,7 +26,7 @@ Write fast and write well.
2326

2427
In addition to the perfect tips, you can also see a clear help description on the right side of the code assistant, explaining the api, and the api link of the vue official website. Click to go directly to the specified page of the vue official website.
2528

26-
Very suitable for learning reference.
29+
Very suitable for getting start.
2730

2831
<img src="/static/snapshots/vue/1.png" style="zoom: 80%;border: 1px solid #eee;" />
2932

en/Tutorial/UserGuide/skill.md

Lines changed: 86 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -1,148 +1,153 @@
1-
# 高效极客技巧
1+
# Effective geek skills
22

3-
惯常来讲,ide和编辑器是2个产品类别。
4-
ide侧重于某种语言的语法分析、提示、转到定义、调试。一般比较厚重。
5-
而编辑器则是对通用文本处理,提供更高效的通用文本处理能力,比较轻量,但语法分析能力不足。
6-
上一代HBuilder是一个典型的IDE,语言处理非常强大,但在字处理、轻量方面客观讲不如优秀的编辑器。
7-
而新的HBuilderX,定位是ide和编辑器的完美结合,那么HBuilderX就会提供轻量且世界顶级的高效字处理能力。
8-
看完这些,你一定会惊叹,原来极客是这么玩的。
3+
Generally, ide and editor are two product categories.
94

10-
### 免拖动选择
5+
IDE focuses on the grammatical analysis, prompting, transition to definition, and debugging of a certain language. Generally heavier.
116

12-
用鼠标拖着选中一片文本,是一个很容易让食指抽筋的操作。尤其是触摸板更痛苦。但是背诵很多相关的快捷键也一样痛苦。
7+
The editor is for general text processing, providing more efficient general text processing capabilities, relatively lightweight, but insufficient grammatical analysis capabilities.
138

14-
HBuilderX提供了更友好方式:`智能双击``Ctrl+扩大选区`
9+
HBuilderX, positioning is the perfect combination of ide and editor, then HBuilderX will provide lightweight and world-class efficient word processing capabilities.
1510

16-
### 智能双击
11+
After reading these, you will be amazed, it turns out that geeks play like this.
1712

18-
在HBuilderX中,但凡特殊点的字符,都能智能双击。
13+
### Drag-free selection
1914

20-
- 双击引号/括号内侧,是选中引号/括号内的内容
21-
- 双击逗号两侧,是选择逗号前一段或后一段
22-
- 双击行尾,是选中该行(不含回车符)
23-
- 双击连词符(-_)选中整个词
24-
- 双击折叠行首内容开头,选择折叠段落
25-
- 双击行首缩进,选择相同缩进的段落
26-
- 双击列表符号,选择列表段落
27-
- 双击Tag开头或结尾,选择整段Tag
28-
- 双击属性赋值等号=,选择Html属性
29-
- 双击if、function等关键字,选择整段包围区域
30-
- 双击分号,选择js等语言的;分号前段落
31-
- 双击css类名左侧,选择Css类
32-
- 双击注释符选择注释区域
33-
- 双击#选择markdown标题段落
34-
- 双击语法定义符开头选择markdown图片、超链接、加粗、倾斜、代码等语法区
35-
- [了解JSON智能双击](/Tutorial/Language/json?id=智能双击,快速选中数组或键值对)
15+
Dragging and selecting a piece of text with the mouse is an easy operation to make the index finger cramp. Especially the touchpad is more painful. But reciting many related shortcuts is just as painful.
3616

37-
下面是一个gif图例,双击选中tag和包围父tag
17+
HBuilderX provides a more friendly way: `smart double-click` and `Ctrl+ Enlarge selection`.
3818

39-
1. 双击div tag的首或尾可以选中这个tag,即开头的<左侧或结尾的>右侧。当然双击if、双击缩进符、双击括号引号内侧...很多位置都可以通过智能双击选中。具体见HBuilder的选择菜单。
40-
2. 按Ctrl+]包围,就可以在这个选区首尾加父标签,同时闪烁光标。如果在js里,按下Ctrl+]不是包围tag,而是包围if、for等函数库,方便快速把一段代码放入if块中。
41-
3. 输入div即可在首尾添加包围标签
19+
### Smart double-click
20+
21+
In HBuilderX, any characters with special points can be double-clicked intelligently.
22+
23+
- Double-click the inside of `quotation marks/brackets` to select the content in `quotation marks/brackets`
24+
- Double-click on both sides of the `comma` to select a paragraph before or after the comma
25+
- Double-click the `end of line` to select the line (without carriage return)
26+
- Double-click the `conjunction symbol` (-_) to select the entire word
27+
- Double-click the beginning of the content at the beginning of the collapsed line and select the collapsed paragraph
28+
- Double-click `line beginning indentation` to select the same indented paragraph
29+
- Double click `list symbol` to select the list paragraph
30+
- Double-click the beginning or end of `Tag` to select the entire tag
31+
- Double-click the attribute assignment equal sign `=`, select the Html attribute
32+
- Double-click on keywords such as `if`, `function`, etc. to select the entire enclosing area
33+
- Double click `semicolon`, select js and other languages; paragraph before semicolon
34+
- Double-click on the left side of the `css` class name and select the Css class
35+
- Double click `Comment symbol` to select the comment area
36+
- Double click `#` to select markdown title paragraph
37+
- Double-click the beginning of the grammar delimiter to select markdown images, hyperlinks, bold, italic, code and other grammatical areas
38+
- [JSON smart double-click](/Tutorial/Language/json?id=Smart double-click, quickly select an array or key-value pair)
39+
40+
The following is a gif legend, double-click to select the tag and surround the parent tag
41+
42+
1. Double-click the beginning or end of `div tag` to select this `tag`, which is the left side of the beginning `<` or the right side of the end `>`. Of course, double-click `if`, double-click `indentation`, double-click `inside bracket quotation mark`...many positions can be selected by smart double-clicking. See the selection menu of HBuilder for details.
43+
2. Press `Ctrl+]` to surround, you can add parent tags at the beginning and end of this selection, and the cursor blinks at the same time. If you are in js, pressing `Ctrl+]` does not enclose the tag, but encloses libraries such as `if`, `for`, etc., so that you can quickly put a piece of code into the `if` block.
44+
3. Enter `div` to add surrounding tags at the beginning and end
4245

4346
<img src="/static/snapshots/tutorial/dbclick.gif" />
4447

45-
### 多光标
48+
### Multi-cursor
4649

4750
<img src="/static/snapshots/tutorial/more_cursor.gif" />
4851

4952

50-
### 扩大选区
53+
### Expand the constituency
5154

52-
`=``+`的默认键位置,所以`Ctrl+=`其实就是`Ctrl`键和`+`号一起按下。
55+
`=` is the default key position of `+`, so `Ctrl+=` is actually pressing the `Ctrl` key and the `+` sign together.
5356

54-
在HBuilderX里可以智能的判断选区范围,持续扩大选区,无鼠标快速选中你需要的选区。
57+
In HBuilderX, you can intelligently judge the selection area, continue to expand the selection area, and quickly select the selection area you need without the mouse.
5558

5659
<img src="/static/snapshots/tutorial/selection_expand.gif" />
5760

5861

59-
### 反包围
62+
### Anti-encirclement
6063

61-
1. 双击tag p开头,选中该tag。
62-
2. 按反包围`Ctrl+Shift+]`,可去掉tag p并自动处理子节点的缩进。
64+
1. Double-click the beginning of tag p to select the tag.
65+
2. Press "Ctrl+Shift+]" to remove the tag p and automatically process the indentation of the child nodes.
6366

6467
<img src="/static/snapshots/tutorial/selection_1.gif" />
6568

66-
这里多提一句HBuilderX的快捷键理念,就是符号化,而不是字母化。很多工具的快捷键都是控制键+功能英文单词中的一个字母,这个是极难记忆的。
69+
One more thing to mention here is HBuilderX's concept of shortcut keys, which is symbolization, not alphabetization. The shortcut keys of many tools are control keys + function a letter in English words, which is extremely difficult to remember.
6770

68-
符号化让快捷键的记忆变简单,比如`Ctrl+]`是包围。
71+
Symbolization makes it easier to memorize shortcut keys, such as `Ctrl+]` for enclosing.
6972

70-
而反操作或增强操作一般是加Shift,比如Ctrl+Shift+]是反包围。
73+
The reverse operation or enhancement operation is generally to add `Shift`, for example, `Ctrl+Shift+]` is anti-enclosure.
7174

72-
### 选中相同语法词及跳过某词
75+
### Select the same grammatical word and skip a word
7376

74-
1. 下图中,使用普通的选择相同词Ctrl+e(mac是Cmd+d),会把所有div都选中。但使用Ctrl+Shift+e(mac是Cmd+Shift+d),会智能识别语法,剔除不相干的词。
75-
2. 下图按下选择相同语法词,同时选中tag首尾的div,而不会选中子节点的div。
76-
3. 然后就可以方便的将原div改名为p
77+
1. In the figure below, using the normal selection of the same word `Ctrl+e` (MacOSX: `Cmd+d`), all divs will be selected. But using `Ctrl+Shift+e` (MacOSX: `Cmd+Shift+d`), it will intelligently recognize the grammar and eliminate irrelevant words.
78+
2. In the following figure, press to select the same grammatical word, and at the same time select the `div` at the beginning and end of the `tag`, but not the div of the child node.
79+
3. Then you can easily rename the original `div` to `p`
7780

7881
<img src="/static/snapshots/tutorial/selection_2.gif" />
7982

80-
备注:
81-
- 如果想选择配对括号,靠相同词是不行的。选中相同语法词会选中匹配的2个左右括号
82-
- 批量选中所有相同词是Ctrl+Alt+e(mac是ctrl+alt+d)
83+
Remark:
84+
-If you want to choose matching parentheses, you cannot rely on the same words. Selecting the same grammatical word will select the matching 2 left and right brackets
85+
-Batch selection of all the same words is `Ctrl+Alt+e` (MacOSX: `ctrl+alt+d`)
86+
87+
### Select All Reference Symbols
8388

84-
### 选择相同语法词或配对符号
89+
Menu【Select】【Select All Reference Symbols】
8590

86-
菜单【选择】【选择相同语法词或配对符号】
91+
MacOSX shortcut keys:`command+shift+d`
8792

88-
MacOSX快捷键:command+shift+d;Windows快捷键:ctrl+shift+e
93+
Windows shortcut keys:`ctrl+shift+e`
8994

9095
<img src="/static/snapshots/tutorial/renameTag.gif" style="zoom: 50%;border: 1px solid #eee; border-radius: 5px;" >
9196

92-
### 交换选区内容
97+
### swap selection content
9398

94-
当需要交互2个选区的内容时,选中a、剪切、点b前面、粘贴、选中b、找到之前a的位置点击、粘贴...这么长的操作太低效。
99+
When you need to interact with the contents of two selection areas, select a, cut, click in front of b, paste, select b, find the position of a before, click, paste... Such a long operation is too inefficient.
95100

96-
来看HBuilderX的`Ctrl+Shift+x`交互选区,也就是Ctrl+x的增强版。
101+
Let’s take a look at HBuilderX’s `Ctrl+Shift+x` interactive selection, which is an enhanced version of Ctrl+x.
97102

98-
1. 双击第1个style属性后的引号内侧,可选中引号内容。
99-
2. 按下Ctrl后继续双击第2个style属性后的引号内侧,可选中2个引号内的选区。
100-
3. 按下Ctrl+Shift+x,交换style属性的内容。
103+
1. Double-click the inside of the quotation mark after the first style attribute to select the content of the quotation mark.
104+
2. After pressing Ctrl, continue to double-click the inside of the quotation mark after the second style attribute to select the selection within the 2 quotation marks.
105+
3. Press `Ctrl+Shift+x` to exchange the contents of the style attribute.
101106

102107
<img src="/static/snapshots/tutorial/selection_swap_1.gif" />
103108

104-
如果不选择内容,光标放置到2行,可直接交换这2行的内容,如下图
109+
If you don’t select the content, place the cursor on two lines, and you can directly exchange the content of these two lines
105110

106111
<img src="/static/snapshots/tutorial/selection_swap_2.gif" />
107112

108113

109-
### 撤销最后一个多选区或多光标
114+
### Undo the last multi-selection area or multi-cursor
110115

111-
选区选多了或选错了,不用担心要重头选,Ctrl+Shift+z不是撤销编辑内容,而是撤销最后一个选区。
116+
If you have selected too many or wrong selections, don’t worry about re-selecting. `Ctrl+Shift+z` is not to undo the editing content, but to undo the last selection.
112117

113-
1. 双击选中class
114-
2. `Ctrl+e`选中相同词
115-
3. `Ctrl+Shift+z`,不再选中最后一个词。
118+
1. Double click to select class
119+
2. Press `Ctrl+e` to select the same word
120+
3. Press `Ctrl+Shift+z`, no longer select the last word.
116121

117122
<img src="/static/snapshots/tutorial/selection_cancel.gif" />
118123

119-
如果多选了一个词,还可以点`Ctrl+鼠标右键`取消一个选区。
124+
If you select one more word, you can click `Ctrl+right mouse button` to cancel a selection.
120125

121-
跳过当前词选下一个词,`Alt+Shift+e`(mac是`ctrl+shift+d`)
126+
Skip the current word and select the next word, `Alt+Shift+e` (mac is `ctrl+shift+d`)
122127

123128

124-
### 批量合并行
129+
### Join Lines
125130

126-
下图示例,是把css合并为一行时的快捷操作
131+
The example is a shortcut operation when combining css into one line
127132

128133
<img src="/static/snapshots/tutorial/selection_merge.gif" />
129134

130-
1. 双击`{`内侧选中class
131-
2. `Ctrl+双击`选中另一个class
132-
3. 按反格式化`Ctrl+Shift+k`,可以把每个css的区块代码都合并为一行
133-
4. `Ctrl+k`是格式化代码,那么`Ctrl+Shift+k`就是合并为一行。
135+
1. Double-click inside `{` to select class
136+
2. Press `Ctrl+double-click` to select another class
137+
3. Press the reverse format `Ctrl+Shift+k` to merge each css block code into one line
138+
4. `Ctrl+k` is the formatting code, then `Ctrl+Shift+k` is merged into one line.
134139

135-
### 同时注释if段首尾
140+
### At the same time annotate the beginning and end of the if paragraph
136141

137-
if块的调整很常见,除了包围、反包围外,常用操作还有同时注释掉if段首尾。
142+
The adjustment of if block is very common. In addition to enclosing and deenclosing, common operations include commenting out the beginning and end of if paragraphs at the same time.
138143

139-
1. 双击if选中if代码块
140-
2. `Ctrl+\`在选区首尾加光标,变成多光标模式
141-
3. `Ctrl+/`注释掉选区首尾行
144+
1. Double-click `if` to select the `if` code block
145+
2. Press `Ctrl+\` to add the cursor at the beginning and end of the selection to change to multi-cursor mode
146+
3. Press `Ctrl+/` to comment out the first and last lines of the selection
142147

143148
<img src="/static/snapshots/tutorial/selection_if.gif" />
144149

145-
### 其它技巧
146-
- [转到定义](/Tutorial/UserGuide/goto?id=转到定义)
147-
- [折叠](Tutorial/UserGuide/fold)
148-
- [大纲](/Tutorial/userinterface?id=文档结构图)
150+
### Other
151+
- [Go to Definition](/Tutorial/UserGuide/goto?id=转到定义)
152+
- [Fold](Tutorial/UserGuide/fold)
153+
- [Outline](/Tutorial/userinterface?id=文档结构图)

en/_navbar.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
* [Docs](/README.md)
2+
* [Extension-Tutorial](/ExtensionTutorial/README.md)
3+
* [API](/ExtensionDocs/Api/README.md)
24

35
<ul class="nav-href">
46
<li class="dropdown">

0 commit comments

Comments
 (0)