1. system要求
in installationTRAE之 before , 请确保您 system满足以 under 要求:
- operationsystem: Windows 10/11, macOS 10.15+, Linux (Ubuntu 18.04+, Fedora 32+, CentOS 8+)
- 硬件要求: 至 few 4GB RAM, 推荐8GB RAM; 2GHz以 on processing器; 至 few 10GB可用disk空间
- network连接: 初始installation and update需要互联网连接
- support 编辑器/IDE: VS Code, IntelliJ IDEA, PyCharm, Sublime Text, Atometc.
2. installationmethod
2.1 VS Code installation
VS Code is TRAEsupport最 good 编辑器之一, 以 under is installation步骤:
- 打开VS Code
- 点击 left 侧edge栏 scalegraph标 ( or 按Ctrl+Shift+X)
- in 搜索框in输入"TRAE"
- 找 to TRAEscale并点击"installation"按钮
- installationcompletion after 点击"启用"
- 重启VS Code以completioninstallation
2.2 IntelliJ IDEA/PyCharm installation
for 于JetBrains系列IDE, installation步骤such as under :
- 打开IntelliJ IDEA or PyCharm
- 点击"File" > "Settings" (Windows/Linux) or "PyCharm" > "Preferences" (macOS)
- in 设置窗口in, 选择"Plugins"
- 点击"Marketplace"tag
- in 搜索框in输入"TRAE"
- 找 to TRAE插件并点击"Install"按钮
- installationcompletion after 点击"Restart IDE"
2.3 commands行installation (advanceduser)
for 于advanceduser, 也可以throughcommands行installationTRAE:
# usingnpminstallationTRAE CLI
npm install -g trae-cli
# verificationinstallation
trae --version
3. 首次configuration
installationcompletion after , 您需要for首次configuration才能usingTRAE 全部functions:
3.1 激活TRAE
- 打开已installationTRAE 编辑器
- 按照提示login or registerTRAE账号
- 输入您 激活码 (such as果 has )
- completion激活 after , TRAE将自动update至最 new version
3.2 language and 区域设置
您可以根据自己 偏 good 设置TRAE language and 区域:
- in VS Codein: 点击"File" > "Preferences" > "Settings", 搜索"TRAE"for设置
- in JetBrains IDEin: 点击"File" > "Settings" > "Tools" > "TRAE"for设置
3.3 configurationcode风格
TRAE会根据您 code风格偏 good 生成code, 您可以 in 设置inconfiguration:
{ "trae.codeStyle": {
"indentation": "spaces",
"indentSize": 4,
"semicolons": "always",
"singleQuote": true }
}
实践case: configurationVS Codein TRAE
按照以 under 步骤configurationVS Codein TRAE:
- 打开VS Code
- 点击"file" > "首选项" > "设置"
- in 搜索框in输入"TRAE"
- 调整以 under 设置:
- 设置language for in文
- 启用自动保存functions
- 调整code补全latency for 500ms
- 启用error自动修复
- 点击"保存"completionconfiguration
4. 插件management
TRAEsupportthrough插件scalefunctions, 您可以根据需要installation and management插件:
4.1 installation插件
- in TRAE设置in找 to "插件management"选项
- 浏览可用插件list
- 选择需要 插件并点击"installation"
- 重启编辑器以启用插件
4.2 推荐插件
- TRAE Python增强: for Pythonlanguageproviding增强functions
- TRAE JavaScript增强: for JavaScript/TypeScriptproviding增强functions
- TRAE code审查: providing更强 big code审查functions
- TRAE documentation生成器: 增强documentation生成functions
5. commonissues解决
5.1 installation失败
such as果installation失败, 您可以尝试以 under solution:
- checknetwork连接 is 否正常
- 确保您 编辑器/IDE is 最 new version
- 尝试手动 under 载installationpackageforinstallation
- checksystem防火墙设置
- 查看installationlog以获取详细errorinformation
5.2 TRAE 无法正常工作
such as果TRAEinstallation after 无法正常工作, 您可以尝试:
- 重启编辑器/IDE
- checkTRAE is 否已激活
- updateTRAE至最 new version
- checkTRAE设置 is 否正确
- resetTRAEconfiguration
- 联系TRAEsupport团队
互动练习: installation and configurationTRAE
6. updateTRAE
TRAE会定期releaseupdate, package含 new functions and bug修复. 以 under is updatemethod:
6.1 自动update
默认circumstances under , TRAE会自动checkupdate并提示您installation. 您可以 in 设置in调整自动update频率.
6.2 手动update
您也可以手动checkupdate:
- VS Code: in scale面板in找 to TRAE, 点击"checkupdate"
- JetBrains IDE: in 插件设置in点击"Check for updates"
- commands行: using
trae updatecommandsupdate