Before you begin working with Cursor AI, it is important to become familiar with some common terms that you will encounter throughout this tutorial. Understanding these terms will make it easier to follow lessons, understand documentation, communicate with other developers, and use Cursor AI more effectively.
Some of these terms are related to artificial intelligence, while others are commonly used in software development. Don't worry if they seem unfamiliar right now—each concept will be explained in greater detail in later chapters.
Artificial Intelligence (AI)
Artificial Intelligence, commonly known as AI, refers to computer systems that can perform tasks that normally require human intelligence. These tasks include understanding language, generating text, writing code, answering questions, solving problems, and making intelligent suggestions.
In Cursor AI, artificial intelligence helps developers write better code, explain programming concepts, debug applications, and automate repetitive tasks.
Prompt
A prompt is the instruction or question you give to Cursor AI.
The quality of your prompt directly affects the quality of the AI's response. A clear and detailed prompt usually produces more accurate and useful results.
For example:
- Create a responsive login page using HTML and CSS.
- Explain this Laravel controller.
- Find the bug in this JavaScript function.
Learning how to write effective prompts is one of the most valuable skills when using Cursor AI.
AI Chat
AI Chat is the built-in conversation feature inside Cursor AI that allows you to communicate with artificial intelligence.
You can use AI Chat to:
- Ask programming questions.
- Explain code.
- Generate new code.
- Fix errors.
- Learn programming concepts.
- Get project suggestions.
Instead of leaving the editor to search online, developers can communicate directly with AI inside Cursor AI.
Code Generation
Code generation is the process of creating source code automatically using artificial intelligence.
Instead of writing every line manually, developers describe what they want to build, and Cursor AI generates a suitable code solution.
Generated code should always be reviewed and tested before using it in production.
Code Refactoring
Refactoring means improving the structure and readability of existing code without changing how it works.
Cursor AI can help developers:
- Simplify complex code.
- Improve variable names.
- Remove duplicate code.
- Follow coding standards.
- Improve maintainability.
Refactoring keeps projects clean and easier to manage as they grow.
Context
Context refers to the information Cursor AI uses to understand your project.
Instead of analyzing only one file, Cursor AI can understand related files, functions, classes, variables, and project structure to provide more accurate responses.
The better the context, the better the AI's suggestions.
Workspace
A workspace is the folder or project you open inside Cursor AI.
A workspace usually contains:
- Source code
- Images
- Configuration files
- Database files
- Documentation
- Project folders
Cursor AI uses the workspace to understand your project and provide intelligent assistance.
Codebase
A codebase is the complete collection of source code for an application.
For example, an eCommerce website may contain:
- Frontend code
- Backend code
- Database scripts
- Configuration files
- API files
- Assets
Cursor AI can analyze an entire codebase to provide better recommendations.
Extension
An extension is a small software package that adds new features to the editor.
Extensions can provide:
- Language support
- Themes
- Icons
- Debugging tools
- Git enhancements
- Database tools
- Productivity features
Since Cursor AI is built on Visual Studio Code, it supports many popular VS Code extensions.
AI Model
An AI model is the technology responsible for understanding your prompts and generating intelligent responses.
Different AI models have different strengths, such as:
- Writing code
- Explaining code
- Solving programming problems
- Understanding large projects
- Generating documentation
Cursor AI allows users to work with powerful AI models depending on their subscription and available features.
Token
A token is a small unit of text processed by an AI model.
When you send a prompt or receive a response, the AI processes the content as tokens rather than complete words or sentences.
Most AI services have token limits that determine how much information can be processed in a single conversation.
Although developers do not usually need to manage tokens manually, understanding this concept helps explain why some AI responses may have size limitations.
Repository
A repository, often called a repo, is a location where a software project's source code is stored and managed.
Repositories are commonly hosted on platforms such as GitHub, GitLab, and Bitbucket.
Cursor AI works seamlessly with repositories, allowing developers to understand, edit, and improve projects more efficiently.
Commit
A commit is a saved snapshot of changes made to a project using Git.
Developers create commits whenever they complete a feature, fix a bug, or make important updates.
Cursor AI can help developers review code before committing changes to improve quality.
Pull Request
A Pull Request (PR) is a request to merge code changes into the main project.
Before merging, team members review the code to ensure quality and identify possible improvements.
Cursor AI can assist by reviewing code, explaining changes, and suggesting improvements before a Pull Request is submitted.
Debugging
Debugging is the process of finding and fixing errors in software.
Cursor AI helps developers debug applications by:
- Explaining error messages.
- Identifying possible causes.
- Suggesting solutions.
- Reviewing suspicious code.
This makes troubleshooting faster and more efficient.
Best Practices
Best practices are recommended techniques and standards that help developers write clean, secure, maintainable, and efficient software.
Cursor AI frequently suggests best practices while generating or reviewing code, helping developers improve the overall quality of their projects.