Files
dcr/docs-crowdin-export/ru-RU/docs/ide-integration.mdx.mdx
2026-07-06 02:21:21 +08:00

52 lines
1.7 KiB
Plaintext
Raw 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.

---
sidebar_label: Интеграция с IDE
---
# Интеграция с IDE
## VS Code
```bash
dcr gen vscode
```
Генерирует в `.vscode/`:
| Файл | Назначение |
| ----------------- | ------------------------------------------- |
| `tasks.json` | Задача `build` (dcr build) |
| `launch.json` | Debug-запуск бинарника |
| `settings.json` | clangd/IntelliSense: include пути, стандарт |
| `extensions.json` | Рекомендует clangd, C/C++ |
## CLion
```bash
dcr gen clion
```
Генерирует в `.idea/`:
| Файл | Назначение |
| ----------------------------------------- | ----------------------------------------------- |
| `externalTools.xml` | Build, Run, Clean, Test как внешние инструменты |
| `customTargets.xml` | Кастомные цели сборки |
| `misc.xml` | Настройки C/C++ проекта |
| `runConfigurations/dcr_build_and_run.xml` | Per-binary run configurations |
## compile_commands.json
```bash
dcr gen compile-commands
```
Генерирует `compile_commands.json` в корне проекта. Стандартный формат для:
## project-info
```bash
dcr gen project-info
```
Выводит JSON с метаданными проекта (см. [gen-commands](/docs/commands/gen-commands)).