crypto_quant/.vscode/README.md

51 lines
1.4 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Python环境配置说明
## 自动配置Python解释器
本项目已移除硬编码的Python路径支持在不同电脑上自动检测Python环境。
### 首次使用步骤:
1. **打开Cursor**
2. **选择Python解释器**
-`Ctrl+Shift+P`
- 搜索 "Python: Select Interpreter"
- 选择您系统中的Python解释器
3. **验证配置**
- 打开 `test_autocomplete.py` 文件
- 尝试输入代码,检查是否有自动补全功能
### 支持的Python环境
- **Anaconda/Miniconda**自动检测conda环境
- **Python官方安装包**检测系统PATH中的python
- **虚拟环境**支持venv、virtualenv等
- **Docker容器**支持远程Python解释器
### 代码提示功能:
**已启用的功能**
- 智能代码补全
- 函数参数提示
- 类型提示
- 自动导入建议
- 悬停信息显示
- 语法错误检测
- 代码格式化
### 故障排除:
如果代码提示不工作:
1. **重启语言服务器**`Ctrl+Shift+P` → "Python: Restart Language Server"
2. **重新加载窗口**`Ctrl+Shift+P` → "Developer: Reload Window"
3. **检查Python扩展**确保Python扩展已安装并启用
4. **验证解释器**确保选择的Python解释器路径正确
### 配置文件说明:
- `.vscode/settings.json`:项目级设置,包含代码提示配置
- `python_settings.json`通用Python配置模板
- 全局设置:已移除硬编码路径,保持代码提示功能