You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
本插件支持基于 MicroPython 语法的代码智能补全和语法检查,这一强大功能对于开发 MicroPython 代码十分实用。它可以让开发者在编写函数的同时查看 API 参数提示,同时它给出的醒目提示也让开发者更易于查找代码中的错误。
@@ -140,7 +156,8 @@ RT-Thread MicroPython is the best micropython plug-in in VScode, which provides
140
156
- Support MicroPython REPL interactive environment
141
157
- Provides many code samples and demo program
142
158
- Support full project synchronization function
143
-
- Support for running sample code files on devices
159
+
- Support to download files or folders to the development board
160
+
- Supports fast running code files in memory
144
161
- Supports code snippets to run functions
145
162
- Supports several major MicroPython development boards
146
163
- Support Windows and ubuntu operating systems
@@ -199,31 +216,48 @@ You can connect to the MicroPython development board by clicking the connection
199
216
200
217
### View the sample code file
201
218
202
-
The MicroPython plug-in provides a wealth of sample code and library files to view in the left active bar.
219
+
The MicroPython plug-in provides a wealth of sample code and library files to view in the left active bar. Right-click on the sample file to add the sample file to the project from the drop-down menu.
203
220
204
221

205
222
206
-
### Download and run the MicroPython file on the development board
207
-
208
-
After successful connection of the development board, right click on the sample code file, select 'download and run the MicroPython file' on the device from the menu, and the sample file can be downloaded to the development board and run, as shown below:
209
-
210
-

211
-
212
223
### Run MicroPython files directly on the development board (kind for debug)
213
224
214
-
This feature is used to quickly debug a single file. It is frequently used in the process of debugging code. When we write the test program in a separate file, we can download the current python file into the memory of the development board and run it.
225
+
This feature is used to `quickly debug a single file` and is frequently used in debugging code. When we write the test program in a separate file, we can use this function to download the current python file to the memory of the development board to run, achieving the effect of rapid debugging. We can also use the shortcut key `Alt + q` to trigger this function.
215
226
216
227

217
228
218
229
### Run MicroPython code snippets on the development board
219
230
220
-
If you just want to debug a small amount of code without downloading files to the development board, you can use the **code snippet** function.You can run the selected code in the REPL environment by selecting the snippet you want to run in the editor, and then selecting the 'execute the selected MicroPython code' option on the device from the right-click menu.
231
+
If you just want to debug a small amount of code without downloading files to the development board, you can use the **code snippet** function.You can run the selected code in the REPL environment by selecting the snippet you want to run in the editor, and then selecting the `execute the selected MicroPython code` option on the device from the right-click menu.
221
232
222
233

223
234
235
+
### Download files/folders to the development board
236
+
237
+
If you want to download individual files/folders to the development board, you can use the function of to **download individual files/folders to the development board**. Select the file/folder in the project that you want to download to the development board and use this feature in the drop-down menu.
238
+
239
+
Note that if there are files/folders with the `same name` on the development board, the download will `overwrite` the existing files/folders.
240
+
241
+
By entering the command `os.listdir()` in `repl`, you can check whether the corresponding file/folder has been `downloaded` successfully. Similarly, you can also use the corresponding command **to delete the file or folder** in `repl`. The command list is as follows:
Click the synchronization button `in the lower left corner` to start the project synchronization function. This feature synchronizes `all directory files` in the local project to the development board's file system. This feature is recommended to be used `after the code is debugged`, without the need to synchronize the project frequently during debugging.
253
+
254
+
After the project synchronization is completed, `the list of files` in the DEVICE can be seen in the `DEVICE FILES LIST column`.
255
+
256
+

257
+
224
258
### Intelligent code completion based on MicroPython
225
259
226
-
This plug-in supports intelligent code completion and syntax checking based on MicroPython syntax, which is a powerful tool for developing MicroPython code.It allows developers to write functions while looking at API parameter hints, and it gives them a visual reminder that makes it easier to find errors in code.
260
+
This plug-in supports `intelligent code completion` and syntax checking `based on MicroPython syntax`, which is a powerful tool for developing MicroPython code.It allows developers to write functions while looking at API parameter hints, and it gives them a visual reminder that makes it easier to find errors in code.
0 commit comments