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
Copy file name to clipboardExpand all lines: docs/codacy-guardrails/codacy-guardrails-getting-started.md
+118-3Lines changed: 118 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ Besides real-time AI code scanning, Guardrails users can now prompt all their Co
9
9
<iframewidth="560"height="315"src="https://www.youtube.com/embed/uVyRWnnJu-0?si=Pnbk65EvpvvJRXX4"title="YouTube video player"frameborder="0"allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"referrerpolicy="strict-origin-when-cross-origin"allowfullscreen></iframe>
10
10
11
11
12
+
# VSCode-based IDEs
13
+
12
14
## Prerequisites
13
15
14
16
- git
@@ -23,6 +25,7 @@ Besides real-time AI code scanning, Guardrails users can now prompt all their Co
23
25
24
26
!!! important
25
27
**For Windows users: Windows WSL** (a feature that allows you to run a Linux environment directly on Windows, without the need for a virtual machine or dual-boot setup) is the only way you can use this feature for now, but we're still working to fully support Windows.
28
+
We currently only support VSCode, Cursor, and Windsurf on Windows.
26
29
27
30
28
31
### Supported IDEs
@@ -48,13 +51,14 @@ Besides real-time AI code scanning, Guardrails users can now prompt all their Co
48
51
## How to install - Quick Guide {: id="how-to-install-quick-guide"}
49
52
50
53
#### Note for Windows users:
51
-
To take full advantage of Codacy Guardrails on Windows, you might need to setup WSL first, [check the steps here.](#how-to-install-wsl)
54
+
To take advantage of Codacy Guardrails on Windows, you might need to setup WSL first, [check the steps here.](#how-to-install-wsl)
52
55
53
56
### 1. Download the extension
54
57
55
-
-[Visual Studio Code](https://tinyurl.com/codacy-vscode)
58
+
-[Visual Studio Code](https://tinyurl.com/codacy-vscode-extension)
This will open the Codacy Extension in your IDE Marketplace. Click **Install**
60
64
@@ -219,4 +223,115 @@ b. Make sure you have Agent mode enabled: [vscode://settings/chat.agent.enabled]
219
223
220
224
c. Open the Copilot chat and switch the mode to `Agent`. You can check that the MCP server was enabled correctly by clicking on the `Select tools` icon, which should list all the available Codacy tools.
221
225
222
-

226
+

227
+
228
+
229
+
# JetBrains IDEs
230
+
231
+
232
+
### Supported Operating Systems
233
+
234
+
- macOS
235
+
- Linux
236
+
- Windows (via WSL)
237
+
238
+
!!! important
239
+
**For Windows users: Windows WSL** (a feature that allows you to run a Linux environment directly on Windows, without the need for a virtual machine or dual-boot setup) is the only way you can use this feature for now, but we're still working to fully support Windows. **Only local analysis** are supported for Windows, as MCP support for JetBrains IDEs is still not completely done.
240
+
241
+
242
+
### Supported IDEs
243
+
244
+
- IntelliJ IDEA
245
+
- PyCharm
246
+
- PhpStorm
247
+
- Others in the suite
248
+
249
+
!!! note
250
+
For JetBrains IDEs, IntelliJ isn't the only supported editor, but is our primary focus. If you use other editors such as PyCharm and run into any issues, feel free to open an issue in our extension's [repository](https://github.com/codacy/codacy-intellij-extension). Check the [extension page](https://tinyurl.com/codacy-jetbrains-extension) on the marketplace to see the full list of supported IDEs.
## How to install - JetBrains Quick Guide {: id="how-to-install-quick-guide-jetbrains"}
264
+
265
+
#### Note for Windows users:
266
+
To take advantage of Codacy Guardrails on Windows, you need to set up WSL first; [check the steps here](#how-to-install-wsl). **Only local analysis** are supported for Windows, as MCP support for JetBrains IDEs is still not completely done.
267
+
268
+
### 1. Install the extension
269
+
270
+
271
+
You can either install the dependency from the [JetBrains marketplace](https://tinyurl.com/codacy-jetbrains-extension) or search for it directly in your Codacy plugin's settings.
272
+
273
+
!!! note
274
+
If you don’t see the Codacy plugin icon on the left taskbar after installing it, go to View > Tool Windows > Codacy
It will create a folder in your local repository called **.codacy** with all needed configuration:
286
+
287
+
- The configuration from all built-in scanners
288
+
- Codacy CLI script to run analysis locally
289
+
290
+
!!! note
291
+
If you don't want this folder to be part of your repository in future commits but continue working with it locally, please add **.codacy** to your .gitignore file
292
+
293
+
!!! note
294
+
The IDE extension will ignore any CLI version already installed (for example, through brew or other package manager) on the machine.
295
+
296
+
297
+
### 3. Install MCP Server
298
+
299
+
#### a. Add the Codacy MCP Server
300
+
301
+
After clicking on the Codacy icon on the lower right of the editor, click on **Install AiAgent MCP**
In your IntelliJ settings, search the settings for the agent of your choice (Junie or Copilot) and confirm that Codacy is listed on the MCP settings tab.
308
+
309
+

310
+
311
+
!!! note
312
+
You need to install the plugin for your desired agent. Make sure to install JetBrains Junie or GitHub Copilot if you want to integrate the Codacy MCP.
313
+
314
+
#### c. Confirm the settings of your Codacy extension
315
+
316
+
In your IntelliJ settings, search the settings for the Codacy extension and confirm that you're using the correct version of the CLI, as well as your preferred AI agent.
317
+
318
+
If you want Codacy to generate the AI agent guidelines (which will instruct the agent to run the Codacy local analysis on changes, for example) for you, you should also enable this option in the editor settings.
319
+
320
+

321
+
322
+
#### d. Generate AI guidelines
323
+
Install the guidelines by clicking on **Install AiAgent Guidelines** on the Codacy icon on the lower right part of your IDE.
You need to install the plugin for your desired agent. Make sure to install JetBrains Junie or GitHub Copilot if you want to integrate the Codacy MCP.
329
+
330
+
### 4. Restart your IDE to apply changes
331
+
332
+
### 5. After everything is set up, you should now be able to interact with Codacy via AI chat.
333
+
* Remember that for you to be able to interact with the Codacy MCP server, you must be on the `Agent` mode of the chat (`Code` on Junie), not `Ask` nor `Edit` mode.
334
+
335
+
### 6. Start using your Agent and Codacy will be there with you!
336
+
337
+

Copy file name to clipboardExpand all lines: docs/codacy-guardrails/codacy-guardrails-limitations.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,4 +2,4 @@
2
2
3
3
## Limitations with Windows
4
4
5
-
Windows WSL (a feature that allows you to run a Linux environment directly on Windows, without the need for a virtual machine or dual-boot setup) is the only way you can use this feature for now, but we're still working to fully support Windows.
5
+
Windows WSL (a feature that allows you to run a Linux environment directly on Windows, without the need for a virtual machine or dual-boot setup) is the only way you can use this feature for now, but we're still working to fully support Windows. Additionally, at this point we're only supporting VSCode and VSCode-based IDEs on Windows.
Copy file name to clipboardExpand all lines: docs/getting-started/integrating-codacy-with-intellij-ides.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,9 @@ To review issues:
81
81
82
82
When the analysis is complete, the Codacy plugin automatically refreshes the pull request analysis result. You can also refresh the pull request data manually by clicking the Refresh Pull Request button in the main view.
83
83
84
+
## Running Codacy Guardrails
85
+
As of version [0.0.8](https://plugins.jetbrains.com/plugin/23924-codacy/versions/stable/840439), the IntelliJ plugin now supports Codacy Guardrails. To see how to get it quickly setup refer to our quickstart guide [here](../codacy-guardrails/codacy-guardrails-getting-started.md#how-to-install-quick-guide-jetbrains).
86
+
84
87
## See also
85
88
86
89
-[Troubleshooting the Codacy IntelliJ plugin](https://github.com/codacy/codacy-intellij-extension?tab=readme-ov-file#troubleshooting)
0 commit comments