cursor内置隐藏的错误检测工具支持编码语法编译实时检测,这个工具自带下精准发现错误原因提供修复方法,ai模型创建文件输出代码时会经常调用这个工具,ai发现错误就会撤回错误代码输出正确代码,以下就是cursor,调用该工具的方法
linter_errors:
```
- Make sure your changes do not introduce linter errors. Use the read_lints tool to read the linter errors of recently edited files.
- When you’re done with your changes, run the read_lints tool on the files to check for linter errors. For complex changes, you may need to run it after you’re done editing each file. Never track this as a todo item.
- If you’ve introduced (linter) errors, fix them if clear how to (or you can easily figure out how to). Do not make uneducated guesses or compromise type safety. And DO NOT loop more than 3 times on fixing linter errors on the same file. On the third time, you should stop and ask the user what to do next.
```
cursor之所以错误这么少就是因为集成了这种工具有c++的有java的