mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 00:09:56 +08:00
[website] update IDE flag
This commit is contained in:
parent
4aa1464b48
commit
0ee3015c7d
@ -12,7 +12,7 @@ Currently, we support [Visual Studio Code](https://code.visualstudio.com/) but a
|
|||||||
<img src="/img/vscode.png" style={{"width": "75%"}}></img>
|
<img src="/img/vscode.png" style={{"width": "75%"}}></img>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
When generating a project using the `-vscode` flag, IDE files will be created alongside the other project files.
|
When generating a project using the `-ide vscode` flags, IDE files will be created alongside the other project files.
|
||||||
These files are placed into the `.vscode` directory and provide the correct configuration for debugging your application.
|
These files are placed into the `.vscode` directory and provide the correct configuration for debugging your application.
|
||||||
|
|
||||||
The 2 files generated are `tasks.json` and `launch.json`. Below are the files generated for the default vanilla project:
|
The 2 files generated are `tasks.json` and `launch.json`. Below are the files generated for the default vanilla project:
|
||||||
|
@ -20,11 +20,11 @@ The Wails CLI has a number of commands that are used for managing your projects.
|
|||||||
| -l | List available project templates | |
|
| -l | List available project templates | |
|
||||||
| -q | Suppress output to console | |
|
| -q | Suppress output to console | |
|
||||||
| -t "template name" | The project template to use. This can be the name of a default template or a URL to a remote template hosted on github. | vanilla |
|
| -t "template name" | The project template to use. This can be the name of a default template or a URL to a remote template hosted on github. | vanilla |
|
||||||
| -vscode | Generate VSCode project files | |
|
| -ide | Generate IDE project files | |
|
||||||
| -f | Force build application | false |
|
| -f | Force build application | false |
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
`wails init -n test -d mytestproject -g -vscode -q`
|
`wails init -n test -d mytestproject -g -ide vscode -q`
|
||||||
|
|
||||||
This will generate a a project called "test" in the "mytestproject" directory, initialise git,
|
This will generate a a project called "test" in the "mytestproject" directory, initialise git,
|
||||||
generate vscode project files and do so silently.
|
generate vscode project files and do so silently.
|
||||||
|
@ -21,11 +21,11 @@ Wails CLI 有许多用于管理项目的命令。所有命令都以此方式运
|
|||||||
| -l | 可用项目模板列表 | |
|
| -l | 可用项目模板列表 | |
|
||||||
| -q | 禁止输出到控制台 | |
|
| -q | 禁止输出到控制台 | |
|
||||||
| -t "template name" | 要使用的项目模板。这可能是在 github 上托管的远程模板的 URL 的名称。 | vanilla |
|
| -t "template name" | 要使用的项目模板。这可能是在 github 上托管的远程模板的 URL 的名称。 | vanilla |
|
||||||
| -vscode | 生成 VSCode 项目文件 | |
|
| -ide | 生成 IDE 项目文件 | |
|
||||||
| -f | 强制构建应用 | false |
|
| -f | 强制构建应用 | false |
|
||||||
|
|
||||||
示例:
|
示例:
|
||||||
`wails init -n test -d mytestproject -g -vscode -q`
|
`wails init -n test -d mytestproject -g -ide vscode -q`
|
||||||
|
|
||||||
这将在 "mytestproject" 目录生成一个名为 "test" 的项目,初始化 git,生成 vscode 项目文件并静默执行。
|
这将在 "mytestproject" 目录生成一个名为 "test" 的项目,初始化 git,生成 vscode 项目文件并静默执行。
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user