YouTubevideo· May 16, 2025· 26:24· 35K views on YouTube
React at a moment you like. The best moments light up here.
I've been a VS Code user pretty much since I started to learn how to program.
Technically, I started in the Atom code editor and then I learned Sublime Text for a little bit, but that was just kind of basic HTML CSS changes for the projects that I was working on at the time. So, I think the first real editor that I picked up was VS Code. And I'm a fan of all of the different forks and flavors of VS Code that have come about over the last couple of years. And in fact, most my most watched YouTube video on this channel is me talking about how I set up my VS Code.
But over the last month, I've been exclusively using, other than a few things here or there, exclusively using the Zed code editor. So, here's what I like and a couple things that I don't like about it and why I might keep using Zed in the long run. For those of you who don't know what Zed is, uh it it's a different code editor. It is not VS Code. It's built entirely on Rust, so it feels fast.
That's the biggest thing, the biggest plus that made me want to try out Zed was the first time I downloaded it, the first time I opened it, it just felt like I was uh back in, you know, some something like Sublime Text again. I just felt like I was speeding through everything that I had to do. It didn't feel like VS Code in that sense. And it looked beautiful. I mean, just look at this this website itself.
I think everything that Zed does and and their and how they build things and the UX and UI design around everything, it looks clean and it's definitely appeals to my aesthetic. Uh and but there's a lot of things that you know it's a new code editor so you don't have all of the aspects that you might have come to expect if you're using something like VS Code or PHP Storm or whatever have you for your particular code editor of choice.
Zed is new and so there's not going to be those extensions or not there's not going to be even those themes or different uh ways of doing things within the editor. It's all It's all brand new. And the first time I tried it, um there was a little bit to be desired. But the last month has actually been really nice. And so here's how I set it up. Here's what it looks like for me. And some of some of the tips and tricks I've learned and how to how to set it up with the things I really like, I'm looking forward to, and the things I don't like.
But overall, the things that I have just come to enjoy about Zed uh more than just the UI. That's definitely what got me in the door. But I think it's a really good code editor. All right, so here is my setup. I change themes every day or two.
So I try not to have like the same exact theme every now and then, but right now what I'm using for themes is the cat pushin espresso the blur theme, which has been uh really wonderful. It's basically has gives that nice background effect where it looks like I have a little bit of opacity in my editor. Now, the first couple things I I I liked and that I had to make sure I set up was um I like that Zed kind of gives you the option of just using whatever you want when it comes to uh when it comes to basically things that are are built in.
What do I mean by that? Well, Zed does have its own agentic um line by line kind of like Copilot, but you can also use Copilot or Super Maven. And that's actually what I have set up here is I have it set to the edit prediction provider as super maven just because I've always found that that's been the fastest and also the most predictable for me. Another thing is um for language servers for PHP out of the box zed has PHP actor as well as intellense.
I've actually gone back and forth on which one I actually prefer at least within zed within VS Code I use strictly intellofense but PHP actor has been really nice. It gives me a little bit more type safety for the things I want.
Now, there's a couple things that I like to set up uh outside of it's nice that all of my uh key bindings are set in this one key bindings panel. So, if I go into the key map right here, there's just a couple of ones that I set up.
Mostly the I wanted to switch the sidebar to the right just like in my VS Code. Um, but I wanted to have like the same kind of bindings. And while Zed does a great job of saying, "Hey, do you want to use VS Code bindings, there's a couple of things I had already set up mostly in order to open the sidebar, I think this is out of the default box for VS Code, but I can't remember nowadays, is I do command K and then B, and that opens up the sidebar." And so that's why I kind of set here is command KB workspace toggle right dock.
And so Zed has all these little options that say, okay, uh, within the workspace or within a project panel or agent, you have the ability to have these different items that you want to do within that specific key binding. So that's what I did with command KB. And same thing with uh, if I'm using the Aentic editor, and we'll get to that a little bit of how I think Zed's AI is actually really topnotch.
I've been enjoying it probably even more so than Cursor nowadays. although it's relatively new and there are some there are some uh faults in some ways, shape or form. Uh but the key bindings and and setting them up was was rather easy.
Again, a lot of the things I really like about Zed is out of the box, it just works great. Of course, I did uh change a lot of these these items to make sure it looks and works for my particular use case. But just right out of the box, how it looks, how it performs, how it feels, I would be fine with. Um the again the few things that I did change was I removed a couple of things. I can't remember exactly what I did um in terms of removing things. But basically you can set the uh panel to either dock left or dock right. Um and that's Oops, did I just mess it all up? Let's see.
Doc right. There we go. And that's the biggest one that I I I change mostly because I prefer the the panel on the right side of things. Um next, uh I a lot of people are going to say, "Okay, but the Laravel options are not that great compared to VS Code." And yes, that is correct.
And here is where I actually think this is what has gotten me to use Zed more effectively in the last month since I've been using it because I think Zed allows me to not think about the AI writing my code as much. Zed has kind of given me the option to just write and just code without having a little bit of that that barrier.
And of course, I'm like I said, I'll get into how Zed is using AI and I think really well, but it feels a little less bogged down in my mind. It feels like I'm more in touch with my code, if you want to say it that way. And it's really one of the reasons why I've loved writing code in Zed because it feels minimal. It feels clean. It doesn't feel like I'm controlling my editor or my editor is controlling me and how I code.
but it's more just me coding and uh I' I've rather quite enjoyed it. Now, the things that I really appreciate about how Zed works are also the things that, you know, make it difficult. Like I said, it there's no you can't just port your VS Code extensions. You kind of have to wait for someone to build them or try to build them yourself. And while I haven't gotten that deep into Rust to build them myself, uh there are there is a blade extension.
So, if we go into the Z extensions, it's it's fully featured in the sense that there are extensions, there are themes, there are um you know, language servers and MPC and MCP servers, and we'll get to that in a bit.
But really, uh the Blade extension is the one that I'm most using, I guess, is the one that you you think that you you actually do need because it provides the the language support, but I'm not actually using it. I I I I did for a little bit, but I I switched how I'm using uh or how I'm formatting things within zed because pretty much almost every new project that I create, there's a couple of things that I do.
If I go into this app.blade.php, again, this is mostly if I'm using um something like Blade or Livewire. If I'm using something like inertia with react or view then zed is fantastic because the the PHP support with PHP actor or or intellofense has been wonderful and uh then like anything Typescript anything uh react flavored or even spelt flavored is just out of the box works great but
blade that's a little trickier one and so I use livewire and I use Livewire Volt single file components Um, and so I set up prettier prettier blade. And so in every single uh every single project that I have, I think you can do this globally. I actually haven't done that. Every single project I have, I do a a prettier file, which basically just says I'm going to use the prettier plug-in blade and prettier plug-in Tailwind CSS.
So, I'll link a blog post blog post in the description uh on on Matt Staler and Jason Begs who kind of talk about how to set up prettier plug-in blade which works fantastic. But uh I also like within my VS code setup a in my livewire
to be able to have PHP uh help to be able to say okay in this check-in function I want to say off and oh I have that because I can now I can pull in that O facade and you know go into the user and say um you know whatever I want to say within that O user and that's because I'm using I'm setting this as a PH PHP extension. So my app.blade.php is actually PHP.
And so PHP actor, which I'm using right now, actually reads this PHP file, but I still get uh syntax highlighting for Blade mostly because it's just PHP. Um that's the tricky part. I don't get uh the neat syntax highlighting for like if statements and stuff like that. So you win some, you lose some.
Uh but basically I also I I just get formatting like simple formatting like if I was to do let's say that save and it it resolves it you know uh you know save and it resolves it because what's happening is on save I'm running npx prettier to save those files and prettier is fantastic anyway so I might as well just be using it and I use uh I use recctor to do any kind of PHP formatting.
Um and so this this is not specific to zed but uh I've been using oops but I've been using uh recctor to say okay not only do I want pint to format things but then I want recctor to tell me what's being formatted. So basically between all those three things prettier with PHP actor uh and then pint and recctor I have a setup that zed just works around.
It gives me all the all the details all the nittygritty flavoring and uh kind of functionality that I want for most of my projects but without having to you know set it all up myself. Real quick, while I was editing, I realized that I wasn't talking too much about what uh unique features Zed also has that I just don't use.
And so there are things that you want to check out on the Zed website that might be useful for you like uh like multiplayer type mode where you kind of have the ability to work as a team or even like the the git panel things that I don't regularly use. So I just don't think about them too much, but I know that a lot of people really like those particular features as well.
Um, and I think that's really about it until the AI stuff. But that's the biggest thing that I I had to kind of switch and play around with was setting setting up how I want to format Blade files because if I'm not working in in Inertia or React or something like that, then yeah, Blade is tricky to get working because it is its own templating language. And while that blade plugin works well writing Livewire in it, you kind of you choose one or the other.
Do you want PHP stuff within a blade file or do you want blade syntax and not any PHP? So for example, if I was to change this app.blade.php into blade and save that again, I should still get the the prettier stuff. Yep.
But now I should also get like the at if Yeah. See, I have that syntax highlighting there as well. And so that's just a very small thing in my mind. I would rather have the PHP uh in in IntelliSense to be able to have uh okay when I'm again when I'm writing out specific uh you know imports and um facads and everything like that. Okay. Lastly, AI within Zed. I use cursor a lot. I use wind surf a lot.
Mostly cursor probably. And then within VS Code, I mostly use a lot of the quick edits or just inline editing within like within Copilot. And so yes, cursor or zed does give me super maven. That's that's that inline assistant that I set up as well. But zed also has the ability to do um highlighted edits. like if I'm selecting something and editing something as well as the agentic response. This is something that relatively came out new I think in the last week or so.
I I think I got earlier access because I had been using zed for a little bit. Uh but I set it up to do my command I and now I have my agent over here in the right. And so the the neat thing that I like about um this agent response is you have the ability to one follow the agent to see where it's actually making changes. But then you can have the ability to either write ask or minimal so chat about anything with no tools.
And so here's where I think Zed has kind of gotten me used to MCPS being able to have the ability to interact with something like Laravel's documentation through if we go into um the we'll just do this through through the MCP servers. I actually have context 7 MCP server set up which enables you to have uh Laravel's documentation.
So if I was to pull this up, we'll go to context7.com. It has Laravel's documentation already updated in the last 3 days with 3,700 372,000.1 tokens and 4,000 snippets.
And because context 7 is an MC MCP server, anything that I ask about Laravel within my Z uh Z agent is then going to be using that MCP server, especially um if I use the right mode. Now, max mode, I don't necessarily know. This tool enables models to use large context windows, a limited tool calls, and other capabilities. So, they do have a paid version.
Um, I believe I'm on the paid version right now. I think it's $20 a month, but you do get free. I think a limited amount of free tokens that you're able to to suggest. Now, there's a couple things I really like about it and things that obviously it's still new and it's getting better. One, you can use whatever model you want, even Olama.
So, if you wanted to do this locally, which I have the I have uh Llama or Llama set up to be able to run Llama 3.2 locally, you don't have to pay for anything technically. You could just run this agentic experience with something like Lama. Um but so Zed has its own special uh recommended ones, but then you can also have, you know, 03 Mini. Um there's probably other LLM providers that you can set up as well. I haven't looked into this too much, but you can use API keys and tokens across that.
Uh but the thing that I really pref really like about this one that follow mode is really nice and then two let's go ahead and just run something and I'll kind of show you this. Um let's say uh let's uh add a new migration to create a to-do model and then link those to-dos uh to the user in the user model.
There's a few things that I really prefer about the Agentic Experience, and I'll kind of uh push this over into the left side so you can kind of see. Right up here, you can see how many tokens have been used and and then how much you have in that whole context window. This is just a very small thing that I really enjoy. I can see, okay, I've used this much tokens within this particular chat.
And you, we've all been there where we kind of talked back and forth and changed things and it messes things up and it it changed some things, it doesn't change other things. Um, and all of a sudden you ran out of context and you just have to start something fresh and you have to basically redo everything. Well, now I've been finding myself splitting my agentic experience up and not continuing as much, mostly because I know how far along in that context window I am.
um the few things that are not as good uh when it comes to at least the AI portion. Um basically there's two things that I wish could be better. H we'll say three things. Uh mostly because I I think it'd be awesome to have updated Laravel stuff. Um but I also know that that also comes with maybe I should just make them for Zed itself. Uh, but one is the AI features. I think it's incredibly fast. I think it works really well.
The neat thing is you still have the ability to keep all to re uh to go one by one versus where where it's going. So, it looks like here we had So, once I if I was to click keep for this particular file, so it created a to-do factory for me. It will it should automatically um sometimes it jumps you to the next um so yeah, it looks like I can review changes here. it will jump you to that those particular files that it changed for example. So we have that to-do um app models. Uh that looks good.
So yeah it created the belongs to the user model.
Um and I just said keep all and so we have this kind of like review page that automatically creates or I could just go into that to-do factory and see what has been done. Um but it also it tells me to run that migration command. So if you are used to um if you are used to cursor and having the ability to say hey run these commands for me. Zed doesn't have that experience just yet but I prefer it that way to be fair.
Two things um I wonder if I can try to figure this out but or or try to do this or uh on on the fly as well. Usually it's only within uh app.blade blade files or any kind of templating file. Let's say profile is going to be called like user profile.
Now let's say in the app.blade that's the wrong one.php file let's change the uh profile name to be user profile.
Now, the thing that I'm going to try to see if it if it does it for me, and of course, it's probably not going to do that. Um, it's already set to user profile. Uh, change it to just profile. Uh, so let's see if it changes it. Here's where I ran into some some issue.
Um, so yeah, it's going to change it to profile. That's great. Um, we're going to keep it. And then if I was to change this back to user profile, save this.
And then say, um, also change log out to can or do you want to log out as the text. I've found that if I make a change manually to something that it took it it already created, sometimes it reverts that change to what it just changed, if that makes sense.
Um because I I don't know if it it it's saying, oh, like I already made this change and so now I'm going to uh maybe you for you didn't mean to delete it or to revert that change manually because you did say to keep it. I don't know where that process is and of course it's not going to do it for me right now. Uh yeah, so it kept it this time for me but mostly I f I found that within uh non Laravel stuff. So I was working in an Astro project um and then in um a Nex.js project it kind of kept the changes.
So like I would it would do a bunch of changes. I would change some CSS manually and then when I asked it to, hey, let's do this next portion, it would revert everything that I just changed because it was like, hey, you probably didn't mean to do this. I don't know. Um, so that was just one little small thing.
Another little small thing, I don't think it happened in Blade as much, but there's like some weird kind of autocomplete errors where like if I was to go into div and have that, but then change this to like a P tag, like every now and then it would duplicate this. Um, I'll try to link the uh where where it happened to me actually in a video for the official Laravel channel.
Uh, because that was where um I I noticed it happening the most where it was like, "Oh, hey, um I was trying to change it to a to a div or try to change that component, but instead it like duplicated that component where I where I would say like prop component." Um, and then it would, if I had P here, it would change it to like prop and add it to the P and then it would just be all messed up.
Um, again, super small things, but the cool thing is some of these are probably already fixed because down here, I'm surprised it didn't happen during this video, but I swear it says click to restart uh zed to get updates probably like every 10 minutes. It's crazy how fast they are updating this and making changes and just making Zed better. And that's really one of the main reasons why I'm bullish on Zed.
Not just because I think their agentic experience is the most focused on how can you build things and how can you actually take control of your code and not have to think too much about um okay, just do this for me. It's more of like a I want to follow along and make sure we're doing this together. Or even if you wanted to kind of take apart that, of course, there are I have this set to command K where I could do that inline edits as well.
That transform is what I believe Zed calls it. But uh really the one reason I like Zed is because the AI isn't in my face unless I want it. like it doesn't feel like it's there until I actually pull it up. And of course, the Agentic experience, this this uh sidebar here is relatively new. Within the past couple of weeks, it's been released to the public. Uh but I it doesn't feel like that's the main reason I use Zed.
The main reason I use Cursor is for that experience. Um, so yeah, it's it's it's definitely something that has been growing on me that I've been learning to love more and more importantly, it just has been making me love writing code again and not just to start a new project, but also like working in existing projects as well. It just it just feels nice to be in something different for a change.
And so whether I'm going to be continuing to use Zed in the future, one thing is it might actually force me to learn Vim motions better because it kind of has Vim motions out of the box with Zed or at least a really good implementation of Vim. And a lot of people who I know love Vim and Neo Vim say that Zed is one of their favorite editors because of that. But I just like how fast, clean, minimal, and smooth the experience feels to code within Zed.
So, I've been using it for a month, but I'm probably going to be continuing using it to to build, to write things, to create things. And so, hopefully, if you like Zed, check it out. If you don't, and you're just going to keep using whatever editor you're using, we'll keep building and keep creating.