Get startedGet started for free

Video: Making changes

1. Video: Making changes

Let's try making a couple of changes to this project. Along the way, I'll show you some useful features around Claude Code. The first thing I'd like to do is move this placeholder text over here on the left-hand side down to the center of this panel. To help Claude understand exactly what content I want moved, I'm going to take a screenshot of that area right there, and then I'm going to paste it into Claude Code using Ctrl V. Note that it's Ctrl V and not Command V that you might be used to on macOS. Ctrl V is used specifically to paste in a screenshot. I can then ask Claude to center that placeholder. After a little bit of searching, Claude is able to make the styling update. And then back inside the browser, yeah, looks great. Let me show you the next thing I would like to change in this app. I'm going to ask for a card component that displays a title and some description. The card is generated without any issue, but there is one awkward thing. On the left-hand side, in the chat interface, there's String Replace Editor. That little panel right there is meant to indicate to the user that a file is being But right now it's using a very technical term, String Replace Editor, for the tool that is being used behind the scenes. I would like to show a user a little bit more friendly text here, and just tell the user that a file is being created and the name of the file. And of course, we should also handle cases where maybe this chatbot is editing a file or deleting a file and other stuff like that. To help guide Claude's attention, I'm going to once again take a screenshot of this so it understands exactly what I'm talking about. Then back over here, I'm going to paste that image in and ask Claude to replace that particular text with some more user-friendly message. Now this is a little bit of a tricky task that will require Claude to do a decent amount of research in this project to complete. Whenever you give Claude a harder task, there are two ways that you can easily boost Claude's intelligence. The first way is to enable Plan Mode. Plan Mode is enabled by pressing Shift-Tab twice, or just once if you are already auto-accepting file edits. In Plan Mode, Claude will do much more research over the contents of your project, reading more files, and coming up with a detailed plan on how to complete your task. After completing the plan, Claude will tell you exactly what it wants to do to complete your task. At that point, you can either accept this plan, and Claude will implement it, or you can redirect Claude in some way. Maybe it missed some file or didn't consider some scenario. The second way in which we can boost Claude's intelligence is by enabling Thinking. This turns on Claude's Extended Thinking feature, allowing it to reason more about a particular task. To enable Thinking, there are a handful of different trigger phrases. Each one gives Claude a progressively larger token budget to think with. Given that this is a trickier task, I might ask Claude to Ultra-think about the best way to implement it. The last thing to understand is that planning and thinking can be used together. So in addition to this Ultra-think, I'm going to also turn on Plan Mode as well. And now I'm going to run this, and we'll see how well Claude can implement this feature. Now you might be wondering when you should use planning and when you should use thinking. Think of these two as handling breadth versus depth. Planning mode is useful when you have a task that requires a wide understanding of your codebase and requires looking at different areas. It's also useful when working on a task that requires several steps to complete. Thinking on the other hand is useful when you are focusing on a particular tricky bit of logic or troubleshooting a difficult bug. The second question you might have is whether you should just enable thinking and planning all the time. Well you certainly can, just keep in mind that planning and thinking consume additional tokens so there is a cost associated with using them. After a couple of minutes of work, it looks like the feature is complete, so I'm going to go back over to my editor and test this out. So right away we can see that we get some better status information here than what we had before. Users are now being told that a file is being created. And if I send in a follow-up request, maybe to change the title, hopefully now on the follow-up we'll see something about editing that file. So there we go. We're editing the app.jsx file. Well I would say Claude definitely succeeded in implementing this feature. Now that we have made some changes to this project, we should probably commit our changes. Claude Code is a solid Git Assistant. We can ask it to stage and commit our changes and it will write a descriptive commit message for us.

2. Let's practice!

Create Your Free Account

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.