One among the most important advantages of Cursor for a beginner is the fact it may possibly train you as you code. If the AI writes a bit of code, talk to it to walk you through it. Get All those explanations significantly — perhaps even duplicate the AI’s reviews into your code as documentation.
Normally, you’ll contain the AI generate anything, and Then you definately’ll desire to tweak it. You don’t ought to correct it by hand in case you’re not relaxed — it is possible to request the AI to modify its output. There are two principal approaches:
The AI will modify the code to wrap The full issue in A different loop or function so it might restart. Put into practice These alterations.
In case the AI responds with something that works by using concepts you don’t fully grasp (maybe it gave an answer with courses or fancy syntax any time you envisioned a thing less complicated), it’s all right to tell it to simplify. Alternative: Say a thing like, “I’m a beginner, could you clear up this in a simpler way?”
Altering options like triggering habits, recommendation timing, and no matter whether to just accept solutions with Tab
Open up it inside a browser: Save the file and open up index.html in the Website browser (you'll be able to right-click on the file in Cursor and there is likely to be an “Open up in Default Browser”
In place of generic icons, can we use animal emojis for the card faces? Also, Enhance the card flip animation by using a 3D effect.
Coding with an AI assistant is actually a talent — you’ll get better at prompting and utilising its strengths with apply. Preserve experimenting and luxuriate in the process!
Evaluation the code: The AI should output a Python script that possible takes MusicLovers advantage of the random module to select a amount, then employs a loop to prompt the consumer for guesses, and offers feedback on Each individual guess. It will eventually split out on the loop when the guess is suitable.
Use @Codebase or Ctrl Enter to check with questions about your codebase. Cursor will look for your codebase to seek out more info related code towards your query.
The real magic of Cursor takes place when You begin chatting with the AI assistant. This is where you could request enable, create code, get explanations, plus much more — all in organic language. Right here’s how to take advantage of of it:
'The Codecademy Team, made up of seasoned educators and tech professionals, is dedicated to creating tech abilities accessible to all. We empower learners around the globe with specialist-reviewed content material that develops and boosts the complex abilities required to advance and reach their careers.'
In the prompt that appears, you may just music lovers create “implement this function”. The AI will then fill during the code ideal in your editor. But when getting started, using the chat is often easier — you explain what you would like and afterwards transfer The solution into your code.
Find out how to make an application utilizing Windsurf AI. Explore installation ways, crucial functions, and hidden tools to construct applications faster plus more successfully.