Cursor + Windsurf Settings to 5x AI's Output Quality (Works with VS Code too)

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ม.ค. 2025

ความคิดเห็น • 240

  • @YifanBTH
    @YifanBTH  หลายเดือนก่อน +93

    The rules file I used: gist.github.com/yifanzz/3cfb8f9065769ffbf94348255f85597d

    • @piratkm2241
      @piratkm2241 หลายเดือนก่อน

      You save me 😊

    • @void0818
      @void0818 หลายเดือนก่อน

      pretty cool, thanks for this gist link.

    • @4L3J
      @4L3J หลายเดือนก่อน +1

      Do you additionally use rules in Cursor settings? Or only the .cursorrules file?

    • @MoMo-op6yx
      @MoMo-op6yx หลายเดือนก่อน

      Thanks!

    • @evanfuture
      @evanfuture หลายเดือนก่อน +1

      That's really nice. I think Cursor lets you add docs as well, which are basically custom bits of context you can `@`... I wonder where those fit into the system prompt/instructions, because that might give you what you asked for towards the end?

  • @mlegrand
    @mlegrand 2 วันที่ผ่านมา

    Looking forward to following this channel. I think it's going to explode with a lot of people interested in this subject. Thanks for making this.

    • @YifanBTH
      @YifanBTH  6 ชั่วโมงที่ผ่านมา +1

      Glad you found it helpful. And thanks for the kind words!

  • @andyslezak3606
    @andyslezak3606 วันที่ผ่านมา +1

    Thanks!

    • @anthonyhoward4115
      @anthonyhoward4115 20 ชั่วโมงที่ผ่านมา

      I need to get on your level with these donations!

    • @andyslezak3606
      @andyslezak3606 13 ชั่วโมงที่ผ่านมา

      @ you’re on your way!

    • @YifanBTH
      @YifanBTH  6 ชั่วโมงที่ผ่านมา +1

      That is a big fat thanks! Really appreciate your support. I hope you found the content useful, and let me know what you particularly enjoyed.

    • @andyslezak3606
      @andyslezak3606 ชั่วโมงที่ผ่านมา

      @@YifanBTH iterating on cursorrules is big. PS, we can prompt Claude/ChatGPT with current ruleset and ask to improve and add anything we haven’t thought of that might be useful. Cherry pick helpful additions - It’s like a free 2x level up

  • @jayhu6075
    @jayhu6075 หลายเดือนก่อน +14

    What a great explanation about the process plan. Many thanks.

  • @SiddharthPant
    @SiddharthPant หลายเดือนก่อน +16

    Man, I expected a clickbait but I am leaving as a subscriber. Good job!

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน +1

      I have to admit that title was very clickbaity. Glad you found value.

    • @LennartIsaksson-v2h
      @LennartIsaksson-v2h หลายเดือนก่อน

      Same

    • @mikekidder
      @mikekidder 29 วันที่ผ่านมา

      Got my click and very informative video! Much appreciated from new subscriber.

    • @AJ-dy2bt
      @AJ-dy2bt 12 วันที่ผ่านมา

      Hahaha, I also became a subscriber for the same reason.. What I saw is roughly what I imagined, but with some differences. In my opinion, these rules can be customized to suit specific needs.

  • @Tobi__sb
    @Tobi__sb 16 วันที่ผ่านมา +3

    I clicked on this video without any hope to learn anything, i finish it with the best AI advice i never hear yet

    • @YifanBTH
      @YifanBTH  6 ชั่วโมงที่ผ่านมา

      Really glad to hear it. What was the most interesting thing you found?

    • @Tobi__sb
      @Tobi__sb 6 ชั่วโมงที่ผ่านมา

      @@YifanBTH Implmenting context and keep track on it was for sure the best part for me ! never tought of that and that so usefull ! after many prompt, many model get lost, boring to explain all again and again

  • @Cnc1073
    @Cnc1073 หลายเดือนก่อน +6

    My short experience of going around in circles shows me this is an absolute must.

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน +5

      We've all spent those sleepless nights trying to convince AI to do the right thing

    • @Cnc1073
      @Cnc1073 หลายเดือนก่อน

      @ I’ve also realised that putting windsurf into chat mode and having full discussions about what it’s about to do makes a lot of difference.

  • @henrymaddocks984
    @henrymaddocks984 หลายเดือนก่อน +4

    Your point about only adding rule where the AI is getting things wrong is a good call out. There are websites that give sample cursorrules files, but using these can sometimes cause the AI to generate code that doesn't fit with your coding style or guidelines. Also remember that the cursorrules file will be included in the context so the bigger the file the less room for other information and the more expensive it will be to use

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน +1

      I did also start off with one of those rule files and then quickly removed a lot of the unnecessary stuff

  • @datajunky2303
    @datajunky2303 หลายเดือนก่อน +1

    Hi Yifan,
    I absolutely adore your videos! I can tell you are passionated and knowledgeable about the topic you are presenting. While other channels try to sell their crap before even proving its validity, you just want to teach and inform and for that I thank you!
    Oh and I just subscribed... I guess you can call me Your Fan!
    Haha please don't lose the smile, its handsome!
    Looking forward to your next video!

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน +2

      Wow, thank you! I'm glad you found this much value. More content coming right up.

  • @cb4623
    @cb4623 หลายเดือนก่อน

    Sending you blessings. This is exactly what I needed to see at this moment to get over some blockages.

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน

      glad I helped! out of curiosity, what was your blockage?

  • @LennartIsaksson-v2h
    @LennartIsaksson-v2h หลายเดือนก่อน +5

    Great! follow a similar workflow when working with Cursor. also use a monorepo (Nx) and always include a Docusaurus wiki, which I have the agent refine to maintain a longer version of rules and guidelines. I appreciate your presentation style - honest and to the point. Great work! Looking forward to seeing more videos.

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน +2

      great to see a fellow mono-repo-er. Having the refine wiki is a useful tip. For these workflow, I frequently use @docs as cursor can deal with the indexing and updating for it but the RAG occasionally misses the point.

    • @LennartIsaksson-v2h
      @LennartIsaksson-v2h หลายเดือนก่อน

      @@YifanBTH absolutely. the wiki is an overly verbose resource. for each session with composer, i always ask the agent to update relevant docs with new changes or sometimes create a worklog to make it easier to cold start. been tinkering with formulating a visual workflow using excalidraw source files and iconography to further improved the documentation. it sure is an balance act.
      i really like the tip of getting the agent to state which rules its applying, going to test this out today. thanks again

    • @PlaystationEu
      @PlaystationEu 28 วันที่ผ่านมา

      ​@@YifanBTH can you open a repository with the visa application bot? useful stuff, I'd be very grateful ;)

  • @PhizzyEssence
    @PhizzyEssence 19 วันที่ผ่านมา

    This is the solution I needed at the exact time I needed it. Liked and subscribed. Thanks!

    • @YifanBTH
      @YifanBTH  18 วันที่ผ่านมา

      Glad I made the video at the right time.

  • @agdwagency2495
    @agdwagency2495 หลายเดือนก่อน +65

    Please share the file

    • @corykeehn8025
      @corykeehn8025 หลายเดือนก่อน +1

      Where is the file?

    • @CarlosMateo-z3k
      @CarlosMateo-z3k หลายเดือนก่อน +5

      Screenshot and tell Claude AI to extract the text with the exact formatting he used, ur welcome.

    • @as23d-q3i
      @as23d-q3i หลายเดือนก่อน

      @@CarlosMateo-z3k that's illegal. stop right there!

    • @freakfreak786
      @freakfreak786 หลายเดือนก่อน

      @@CarlosMateo-z3k exactly my thought 😆 its almost 2025, just use ai...

    • @Lsw_1
      @Lsw_1 หลายเดือนก่อน

      @@CarlosMateo-z3k my slow self manually typed everything 😭

  • @LarryWEitel
    @LarryWEitel หลายเดือนก่อน +1

    Thank you. Your video was perfect timing. VERY INSIGHTFUL!

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน

      Glad it was helpful!

  • @thenextension9160
    @thenextension9160 หลายเดือนก่อน +6

    thanks for this! great tips and recommendations

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน

      Glad it was helpful!

  • @richardadonnell
    @richardadonnell หลายเดือนก่อน +16

    🎯 Key points for quick navigation:
    00:00 *🧩 Context is Key: AI can’t guess everything; providing clear and concise context ensures reliable results.*
    00:14 *📄 One Rules File: A rules file can drastically improve AI coding assistants like VS Code, Cursor, or Windsurf.*
    00:41 *⚙️ Rule Integration: Tools like Cursor and VS Code use specific files to include context for all AI sessions.*
    01:35 *🔍 Verify Rules: Add a rule that makes the AI explicitly state which rules it followed for easy verification.*
    02:16 *🎯 Project Context: Include a high-level project description to help AI understand its purpose.*
    02:44 *🗂️ Code Structure: Outline the folder and file structure to guide the AI’s decisions.*
    03:12 *🔧 Inferred Actions: AI will act based on rules file context, like placing a utility function in the correct folder.*
    04:09 *🚫 Avoid Random Dependencies: Specify your tech stack to prevent AI from introducing unnecessary libraries.*
    05:04 *🔐 Tailored Rules: Customize rules for specific frameworks or tools like Chrome Manifest V3.*
    06:00 *📉 Concise Rules: Overloading the file with rules can confuse the AI and make maintenance harder.*
    07:07 *📜 Git Commit Rules: Define commit message structures for consistent version control history.*
    08:02 *📝 Comment Preferences: Limit comments to complex logic or critical sections to avoid inconsistency.*
    08:29 *🔄 Iterative Updates: Continuously refine the rules file as new AI mistakes are identified.*
    09:37 *🔗 Centralized Rules: Symbolically link one rules file across multiple editors for easier management.*
    11:00 *🚀 Future Improvements: AI editors could auto-suggest rule updates based on repeated issues to streamline workflows.*
    12:12 *🧠 AI Memory Potential: Future AI could infer preferences from chats, reducing manual rule maintenance.*
    13:34 *🎉 Outcome: Following these steps makes AI coding assistants more consistent and reliable as projects grow.*
    Made with HARPA AI

  • @dax8it
    @dax8it 29 วันที่ผ่านมา

    🤯🤯🤯 You rock! Best tip for AI Dev IDE's ever!!

  • @leonardoplus1671
    @leonardoplus1671 หลายเดือนก่อน

    Everything he is explaining I am applying I understand how is works when you know that you will do a great team

  • @yurijmikhassiak7342
    @yurijmikhassiak7342 หลายเดือนก่อน +4

    great. doing something similar but I actually have sections in rules: if you are asked to fix.. start with analyzing what files you need in context and ask the user for them... do not make assumptions.. it solved many "halucinations" in interfaces and connected methods.
    Also, sometimes I move out of cursor to claude client or use o1 preview as it mostly better works with larger context. There was a research that models start performing worse after a few thousand input tokens; it's 300 lines of code. Without your prompt, prompt from cursor team and cursor rules. The hope is in agents to create custom context and rules for each task. But now it's not there. I's also like task management for LLM inside cursor. It ofter proposes steps and it could add them to tasks without need to read all history in chat.

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน

      That's a very useful rule to add in. I think the community will be building very strong rule files in the coming month. I'd also want to use o1-preview for this, but the pricing just doesn't quite work out for most of the tasks. I do like using that for the initial problem breakdown.

  • @diegolondrina7510
    @diegolondrina7510 23 วันที่ผ่านมา

    Simple, useful, thought out video. Nice.

    • @YifanBTH
      @YifanBTH  18 วันที่ผ่านมา

      Glad you liked it!

  • @geekdomo
    @geekdomo หลายเดือนก่อน

    Thank you for this. I have been struggling with my WindsurfAI going off the rails. I took advantage of the new file when they added it but it was not working well. I am not a programmer and this app has helped me create my first app but its been a struggle at the end here with it being so complex. Thank you.

    • @YifanBTH
      @YifanBTH  22 วันที่ผ่านมา +1

      These AI code editors are great to get things off the ground, but you probably still have to have a certain degree of knowledge of coding to go further. I think we'll definitely get there with a fully autonomous AI coder, but that will still take some time.

    • @geekdomo
      @geekdomo 22 วันที่ผ่านมา

      @@YifanBTH I liken it to me telling monkeys how to drive via a cell phone 1000 miles away. We are getting down the road but its not without slamming into the guardrails or completely off the road most of the time. My iOS program is now running but still some issues when trying to get it to fix simple UI or other issues. Getting there slowly but surely. I cannot get Cursor to edit the code at all whereas Windsurf has been pretty good except for the monkey part.

  • @MarkusEicher70
    @MarkusEicher70 29 วันที่ผ่านมา

    Hello Yifan. New sub for sure. I am new at using AI driven IDE's and just started working with Cursor. Appreciate this workflow enhancement. I'm sure we will find other good tips and tricks on your channel. Kind regards and may you have a good time.

    • @YifanBTH
      @YifanBTH  22 วันที่ผ่านมา

      Welcome!

  • @jaysonp9426
    @jaysonp9426 29 วันที่ผ่านมา

    This is awesome man! New sub.
    I started building something before cursor to manage context. I stopped because cursor came out but what I did was hashed the codebase and then if the hash was broken it would include that file in the context.
    Also, used Gpt4o mini to describe every function and every function it calls to get a full control flow.
    If I had time I'd push it further but hopefully someone sees this lol

    • @YifanBTH
      @YifanBTH  22 วันที่ผ่านมา

      kudos on building that yourself. we are getting some amazing tools to help us along the way

  • @terjegloerstad8628
    @terjegloerstad8628 หลายเดือนก่อน +4

    Great advice !

  • @tradingwithwill7214
    @tradingwithwill7214 26 วันที่ผ่านมา +1

    I'm doing a Flutter app. Most of these rules don't apply and is specific to grammar, coding style, etc but could be adjusted. The editors don't usually have a problem with naming conventions or understanding the structure of a Flutter/React app in terms of folders. I'm mostly interested in the optimal approach to reducing the coding iterations and errors. ie being explicit about the requirements for the app, libraries, doing it in stages, etc. Also using o1 or new gemini thinking for high level along with claude or 4o to do the coding.

    • @YifanBTH
      @YifanBTH  22 วันที่ผ่านมา

      These coded edge editors excel at common frameworks. The moment you venture slightly off the main course, things can get a bit hairy. I think the less popular the framework, the more rules you probably need to apply for it to do well.

  • @johnshamamyan
    @johnshamamyan หลายเดือนก่อน

    Solid advice. Great video bro keep it up. 🎉

    • @YifanBTH
      @YifanBTH  22 วันที่ผ่านมา +1

      Thanks! Will do!

  • @mayurdotca
    @mayurdotca 16 วันที่ผ่านมา

    This is great!!!! Going to use these tips

    • @YifanBTH
      @YifanBTH  6 ชั่วโมงที่ผ่านมา

      Let me know which one you found the most useful after implementing.

  • @tomasmolas
    @tomasmolas 18 วันที่ผ่านมา

    Excellent work. I really liked the structure and clarity of the code editor rules. Congratulations. I would like to see your other works. Where can I find them?

    • @YifanBTH
      @YifanBTH  18 วันที่ผ่านมา

      welcome, you should check out my other videos in the channel

  • @supertodda
    @supertodda หลายเดือนก่อน +2

    One other thing I figured out is to symlink the .cursorrules to a non .dotfile version, this way windsurf can see the file (I don't think it sees .dotfiles by default), and can make self-improving updates. (i.e. ln -s .cursorrules cursorrules), then when theres a new change to the architecture, I ask it to update that file as well to self-improve.

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน +1

      That is a very interesting observation. I need to give that a try.

  • @zeppelin0110
    @zeppelin0110 หลายเดือนก่อน +26

    We demand the file!!

    • @CarlosMateo-z3k
      @CarlosMateo-z3k หลายเดือนก่อน +3

      Screenshot and tell Claude AI to extract the text with the exact formatting he used, ur welcome.

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน +3

      The demand has been received: gist.github.com/yifanzz/3cfb8f9065769ffbf94348255f85597d

  • @Sathias_
    @Sathias_ หลายเดือนก่อน

    Oh wow, I didn't know about that feature, this will help a lot with a ComfyUI project I am working on. I was having trouble getting Windsurf to stick to the standards I wanted.

    • @YifanBTH
      @YifanBTH  22 วันที่ผ่านมา +1

      yeah, this principle applies to any system that has a rules file / setting. glad you found it helpful

  • @cloudshoring
    @cloudshoring 24 วันที่ผ่านมา

    Yifan, Thanks. Relaly, One of the most useful things .

    • @YifanBTH
      @YifanBTH  18 วันที่ผ่านมา

      Glad you found it useful.

  • @iAmDonH
    @iAmDonH หลายเดือนก่อน +2

    I was looking for the windsurfrules option. Going back to our version control chat on your previous video. I asked windsurf to push a git commit after each update. But it forgot context after a while.. So the file should help. Thanks!

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน +2

      Great idea. I use the Git UI most of the time as it's straight forward enough.

  • @cyberluke
    @cyberluke 24 วันที่ผ่านมา

    You nailed it bro!

    • @YifanBTH
      @YifanBTH  18 วันที่ผ่านมา

      Glad it was helpful.

  • @MikeRhodesIdeas
    @MikeRhodesIdeas หลายเดือนก่อน +1

    would love a guide on getting windsurf with replit with SSH !!

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน

      Let me have a test, and I will report back.

  • @anasajaanan7087
    @anasajaanan7087 20 วันที่ผ่านมา

    Amazing Job

    • @YifanBTH
      @YifanBTH  18 วันที่ผ่านมา

      Glad you found it useful.

  • @Vvvrrrmmm
    @Vvvrrrmmm หลายเดือนก่อน +2

    Maybe You can take your output with errors etc as a file and rules as a file and ask it what additions to add to rules to prevent the issues from occurring.

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน

      That's the workflow I've kind of ended up with. I was hoping that I could just add in that one rule so that I would do it automatically without that additional step.

  • @dtory
    @dtory หลายเดือนก่อน +2

    really really nice video

  • @ali2kan
    @ali2kan หลายเดือนก่อน

    Thanks for this!

  • @morneauh
    @morneauh หลายเดือนก่อน +1

    11:20 is already possible in Copilot. I posted a comments with more details but got automatically removed.

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน

      interesting, could you ellaborate?

    • @morneauh
      @morneauh หลายเดือนก่อน

      @@YifanBTH Check copilot instruction documentation. There's 4 categories.

  • @fiorisony
    @fiorisony หลายเดือนก่อน

    This was great. Subbed.

    • @YifanBTH
      @YifanBTH  22 วันที่ผ่านมา +1

      Welcome aboard!

  • @larsthomasdenstad9082
    @larsthomasdenstad9082 หลายเดือนก่อน

    Great video, thanks for sharing.

    • @YifanBTH
      @YifanBTH  22 วันที่ผ่านมา

      Thanks for watching!

  • @Vvvrrrmmm
    @Vvvrrrmmm หลายเดือนก่อน +7

    Maybe You can take your output with errors etc as a file and rules as a file and ask it what additions to add to rules to prevent the issues from occurring. Love your content Yifan!!

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน

      Good suggestion. I really hope cursor will just make this automatic one day.

  • @heavierthanlight7173
    @heavierthanlight7173 29 วันที่ผ่านมา

    THNX, this is going to be great!

    • @YifanBTH
      @YifanBTH  22 วันที่ผ่านมา

      glad you found it useful!

  • @AIAgentKing
    @AIAgentKing หลายเดือนก่อน

    Love the video... about the context files i have a success with them.. I am just giving the contet file in the directory where my project is and i am tagging it into the composer and saying ... you should look at this file and understand it deeply and than implement the ______ in our current project (you can put the context files in a sub folder named 'files' for example)

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน

      Yes, that workflow can work quite well if you want to. You can also use the native Notepad feature that references other files and stores the context directly in the cursor. The improvements I wish they made soon is to be able to automatically include those notepads depending on the work that you're specifying.

  • @BeHappy-cb2np
    @BeHappy-cb2np หลายเดือนก่อน +7

    We need the file sir

    • @CarlosMateo-z3k
      @CarlosMateo-z3k หลายเดือนก่อน

      Screenshot and tell Claude AI to extract the text with the exact formatting he used, ur welcome.

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน +1

      It's an independent comment now. gist.github.com/yifanzz/3cfb8f9065769ffbf94348255f85597d

  • @Testinnng1212
    @Testinnng1212 หลายเดือนก่อน +1

    Very Nice tutorial, are you able to Share à version of that cursorrule? Very interesting

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน

      I'll put one up in the pinned comments coming very soon.

  • @mrprofessor2
    @mrprofessor2 28 วันที่ผ่านมา +1

    I liked these tips but i am specifically looking for
    "a feature where i don't have to type @docs -> @nextjs to use latest docs everytime "
    bcz everytime i don't type or explicitly mention the docs it uses the old code structure not the latest

    • @YifanBTH
      @YifanBTH  22 วันที่ผ่านมา +1

      Yeah, the rules file doesn't allow you to directly mention the tools, which is kind of annoying. So we still have to do that manually, currently.

  • @Swiftriverrunning
    @Swiftriverrunning หลายเดือนก่อน +1

    very helpful, thank you

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน

      Glad you found it helpful. Thanks for watching!

    • @Swiftriverrunning
      @Swiftriverrunning หลายเดือนก่อน

      @@YifanBTH My favorite tip was updating the rules file as you go when the ai makes mistakes. When the llm makes an error, I have it describe the error it made, and propose a rule change to keep it from happening in the future. That one trick has done so much to improve the reliability of the agent.

  • @hagarborges9382
    @hagarborges9382 หลายเดือนก่อน +1

    Really useful advices. From time to time I have to start a new composer and @codebase is not enough. I did a project analyzing script to help me with that, it uses Gemini flash. Basically scans all files from my project following a prompt, then I paste the report on Cursor. Mixing that with rules must be the next big thing for me.

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน

      Just rely on the @codebase along can be a hit and miss, especially with larger codebases and when you have very tailored coding styles. AI will likely miss that.

  • @ajays6393
    @ajays6393 19 วันที่ผ่านมา

    Thank you

    • @YifanBTH
      @YifanBTH  18 วันที่ผ่านมา +1

      Glad you found it helpful.

  • @pkaser
    @pkaser หลายเดือนก่อน

    I saw another dev video do an @ mention to a url showin apples best practices and it incorporated it for a project if you cant get conditional rules as a potnetial workaround

    • @YifanBTH
      @YifanBTH  22 วันที่ผ่านมา

      Indeed, the URL mentioning and docs mentioning are really powerful features in Cursor by giving you that optional context.

  • @czowiekktoryzaduzowidzia5612
    @czowiekktoryzaduzowidzia5612 26 วันที่ผ่านมา

    Can you show how you made your app, step by step

    • @YifanBTH
      @YifanBTH  22 วันที่ผ่านมา

      Definitely in my backlog. Thanks for watching

  • @shmaliy
    @shmaliy หลายเดือนก่อน

    Explaine more about steps to write the file please

    • @shmaliy
      @shmaliy หลายเดือนก่อน

      Where can i generate the file

    • @YifanBTH
      @YifanBTH  22 วันที่ผ่านมา

      you can find some templates here: cursor.directory/. you can also use the one I linked in my pinned commend.

  • @scottx1415
    @scottx1415 หลายเดือนก่อน

    Nice, Subscribed. Your file would be time saver, even though I would need to rewrite much of it. Thanks

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน

      Thanks for watching! This is also in the pinned comment now, and here's the link. gist.github.com/yifanzz/3cfb8f9065769ffbf94348255f85597d

  • @Kunal_Rai
    @Kunal_Rai 29 วันที่ผ่านมา

    Damn great, is this cursor rule different from what we set in settings in cursor?

    • @YifanBTH
      @YifanBTH  22 วันที่ผ่านมา

      the cursor rules file applies on a per project basis, the cursor setting applies globally

  • @sprinteroptions9490
    @sprinteroptions9490 29 วันที่ผ่านมา

    You could always create a customGPT or notebookLM of different .cursorrules, etc, and just ask it to generate a new one when you have a vague idea for the next project

    • @YifanBTH
      @YifanBTH  22 วันที่ผ่านมา

      Great idea. You can also find a decent list of templates here to get started: cursor.directory/

  • @iAmDonH
    @iAmDonH หลายเดือนก่อน

    Also.. you mentioned you were doing a Chrome extension. From what I’ve seen. They don’t allow for loading remote scripts. I’m guessing you are just keeping everything local?

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน

      I'm not sure what you mean by "not allow for loading remote scripts?", I'm using these AI editors for local development.

  • @pedromartinezlopez
    @pedromartinezlopez หลายเดือนก่อน

    Great explanation, please share the file to use as template.

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน

      Yessir, it's in the pinned comment now. gist.github.com/yifanzz/3cfb8f9065769ffbf94348255f85597d

    • @pedromartinezlopez
      @pedromartinezlopez หลายเดือนก่อน

      @@YifanBTH Thank you. I would appreciate a NextJS 15 project folder structure video from you!

  • @gerrcass1
    @gerrcass1 22 วันที่ผ่านมา

    Thanks for the insightful video! While a general rules file is great for broad guidelines, wouldn't it be more efficient to leverage package.json to provide specific context for the tech stack in Node.js projects? I mean, it's automatically updated, eliminating the need for manual maintenance and reducing the risk of inconsistencies.

    • @YifanBTH
      @YifanBTH  18 วันที่ผ่านมา

      The package.dation can absolutely be referenced, but it still contains limited information, say things around directory structure and coding best practices.

  • @LeePenkman
    @LeePenkman หลายเดือนก่อน

    nice, i always worry about the filesize knowing that the old llms eg gpt 3 used to only really handle a few instructions at once, i think cursor also has workspaces so you can have multiple rules files basically eg working on the backend or frontend and it will only use the one file,
    Im starting to keep a bunch of prompt files in the project these days too so i can manually @ them :D

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน +1

      yes, having multiple prompts files that you can just reference with an "@" is super convenient. I just wished that they'll be able to automatically figure out the files needed rather than having to manually put it in everytime.

    • @LeePenkman
      @LeePenkman หลายเดือนก่อน

      @@YifanBTH Yea cline and the cursor in the new "agent" mode sometimes work to read files without having to ask, using the cursor codebase search too to understand new codebases which is working pretty well just not for the more arcane errors that involve navigating far through the codebase as well the agents still break down and its much better to have all the context there in files @ ed, trying to reorganize my code to be simpler and more demo/leetcode style understandable by AI these days for this reason

  • @isaac2k2
    @isaac2k2 29 วันที่ผ่านมา

    This is really good. I have a request. I am building a tools website that has 100s of tools in a single website. How can i automate it so AI can create all tools listed, including the different files needed to complete a working tool without me having to manually create one at a time. I am using windsurf ai.

    • @YifanBTH
      @YifanBTH  22 วันที่ผ่านมา

      I'm not sure if I fully understand your need. Can you send me a link to the demo website or drawing? That would really help.

  • @hjoseph777
    @hjoseph777 26 วันที่ผ่านมา

    Great, we can use your template as a base to extend it to a generic standard template for programming languages such as C#, Python, and C++.

    • @YifanBTH
      @YifanBTH  22 วันที่ผ่านมา

      Absolutely. I think the beauty of the file is that you can constantly add to it as you discover problems. You never have to have a fully fledged file from the get-go.

  • @adomakins
    @adomakins หลายเดือนก่อน

    Great idea to talk about the most recent changes for your framework
    im using svelte 5 but it always tries to use svelte 4 syntax.
    Same thing used to happen with Next.js, especially since theyre always “improving” it

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน +1

      Yeah, it's like if you're using next.js 15 or react 19 - any latest versions. You'd really have to call things out explicitly otherwise it hallucinates some random stuff.

    • @adomakins
      @adomakins หลายเดือนก่อน

      @@YifanBTH 100%

  • @purushottam2010
    @purushottam2010 หลายเดือนก่อน

    11:21 Isnt cursor's notepad feature helpful here?

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน

      You can, but I specifically wanted something that allows me to mention them directly in the rules file so that cursor can automatically look it up without me manually mentioning it. I agree with you. Notepad is already a great feature.

  • @IdPreferNot1
    @IdPreferNot1 หลายเดือนก่อน

    Windsurf has a global and a local file. Any thoughts on different approaches? Love symlinks...

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน

      I prefer the .windsurf local file as it can be committed to version control. As tech stack and style change across codebases, having individual settings is more convenient.

  • @hello.niteshbhardwaj
    @hello.niteshbhardwaj 26 วันที่ผ่านมา

    Where this file needs to add? In a project root directory?

    • @YifanBTH
      @YifanBTH  22 วันที่ผ่านมา

      Yes, just at the root of the directory.

  • @adonleon
    @adonleon 16 วันที่ผ่านมา

    I think you should make your head window smaller, much much smaller as we lose a bit of a context looking at your editor when third of the screen is hidden by the talking head :)
    Otherwise - great vid.

    • @YifanBTH
      @YifanBTH  6 ชั่วโมงที่ผ่านมา

      Good suggestion. We'll keep an eye on that for future videos.

  • @zscoder
    @zscoder หลายเดือนก่อน

    Does Google AI studio have a rules file for Gemini flash?

    • @YifanBTH
      @YifanBTH  22 วันที่ผ่านมา +1

      I don't believe they have it just yet.

  • @pabloderosacruz
    @pabloderosacruz หลายเดือนก่อน +2

    YES, we need that file :)
    dont make me screen capture and type the hole thing please :)

    • @CarlosMateo-z3k
      @CarlosMateo-z3k หลายเดือนก่อน +1

      Screenshot and tell Claude AI to extract the text with the exact formatting he used, ur welcome.

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน +1

      Thanks for watching! It's also in the pinned comment now.
      gist.github.com/yifanzz/3cfb8f9065769ffbf94348255f85597d

    • @pabloderosacruz
      @pabloderosacruz หลายเดือนก่อน

      @@YifanBTH yes sir!

  • @ridwanajibari4443
    @ridwanajibari4443 13 วันที่ผ่านมา

    ok, i just subscribe your channel because of this

    • @YifanBTH
      @YifanBTH  6 ชั่วโมงที่ผ่านมา

      Glad you found this useful. More coming!

  • @pedrovitur9350
    @pedrovitur9350 หลายเดือนก่อน

    Which is still better, windsurfing or cursor, after changing the value and adding the limit?

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน

      I feel the pricing between the two is roughly on par with each other. So if you're already familiar with one and happy with it, I don't think there's any reason to move.

    • @pedrovitur9350
      @pedrovitur9350 หลายเดือนก่อน

      @YifanBTH In this case, I don't subscribe to either one, I used another one, between the $20 cursor pro with unlimited prompts or windsurf with $15 with limited prompts that last 2 days?

  • @tradingwithwill7214
    @tradingwithwill7214 หลายเดือนก่อน

    In VS Code I currently use Cline. there are custom instructions for each prompt but no rules afaik

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน

      Yeah, having a committable file is bliss!

  • @herbuen
    @herbuen หลายเดือนก่อน

    Thanks for the video and file.
    Please, do a step by step tutorial!

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน

      thanks, anything specific you want to see in a more detailed tutorial?

    • @herbuen
      @herbuen หลายเดือนก่อน

      @ yes, I want to build a patient management system for a clinic where the user login into a dashboard to see a calendar with appointments, patient information, and some sort of productivity view.
      Thanks!

  • @xNghtMRxEdgex
    @xNghtMRxEdgex หลายเดือนก่อน

    I do use .cursorrules but I can't fine the option to opt to use them in Windsurf

    • @YifanBTH
      @YifanBTH  22 วันที่ผ่านมา

      it's enabled by default, you can just place a .windsurfrules file in project root directory. or "ln -s .cursorrules .windsurfrules"

  • @pythonantole9892
    @pythonantole9892 29 วันที่ผ่านมา

    This is a light bulb moment for me. Does this mean you will need the rule files for every project? I'm thinking of a situation where for example you are working on a project that has a Python backend and Vue frontent. If i create the rules file for the python project and i switch to my frontend code, the rules now become irrelevant. No?

    • @YifanBTH
      @YifanBTH  22 วันที่ผ่านมา

      you can also apply a global setting for both windsurf and cursor. for things to apply across the board.

  • @kittengray9232
    @kittengray9232 20 วันที่ผ่านมา

    Can you ask o1 to write the best possible instruction file for you?
    - Although include a role, like: answer as the world-famous software development expert specializing in Angular with the prestigious "Top Angular Innovator Award."
    - apply CoT technique:
    Before generating the code, outline the key steps you will take to implement...

    • @YifanBTH
      @YifanBTH  18 วันที่ผ่านมา

      Absolutely, I actually started off one of my rule templates from doing that. You can also find a lot of these templates on the website cursor.directory

  • @phanquochung3924
    @phanquochung3924 หลายเดือนก่อน

    Hi Yifan, just curious if you find using both cursor and windsurf made a difference in your productivity ?

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน

      I made the effort to use both, mostly driven by my own curiosity. I don't think it's really necessary for the everyday workflow for most, but I keep this subscription open for both because people are releasing new features so quickly these days and I want to make sure that I have the ability to test them out.

  • @surenganne
    @surenganne หลายเดือนก่อน

    can you share your current cursor file?

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน

      It's now shed in the pinned comments. Thanks for watching! gist.github.com/yifanzz/3cfb8f9065769ffbf94348255f85597d

  • @AndreLanger1
    @AndreLanger1 หลายเดือนก่อน

    i cant find .windsurfrules file anywhere :(

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน

      You have to manually create it at the root of your repository. So just create an empty text file with that name and WinSurf will follow the rules. If you want to test just add in the "say hahaha" at the beginning of every output as your test.

    • @AndreLanger1
      @AndreLanger1 หลายเดือนก่อน

      @@YifanBTH thank you!

  • @brandonbraner
    @brandonbraner หลายเดือนก่อน

    Starts off better prompts are not the answer… but include this context in your prompt to make it better

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน

      Haha, you caught me. I was referring to prompts as something that you have to manually write every single time. Thanks for calling it out

  • @maher.datainsights
    @maher.datainsights 28 วันที่ผ่านมา

    how to add the context file

    • @YifanBTH
      @YifanBTH  22 วันที่ผ่านมา

      You can just create the file at the project's root.

  • @johnnathanielmarquez7615
    @johnnathanielmarquez7615 หลายเดือนก่อน

    how can I use rules in vscode with github copilot?

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน +1

      for vscode, you can save the file to .github/copilot-instructions.md
      I also mentioned it in the video at 0:51

  • @VolodkaBobovich
    @VolodkaBobovich หลายเดือนก่อน

    However, going back to version 42.5 and adding 1200 code files to the context (even without .cursorrules ) works just fine, it supports my coding style. So you are wrong that more files make the output worse.

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน

      Very useful context! To me, I think it was more of a problem of how to maintain when the context is too long, so when it's shorter it's easy to spot mistakes. Glad to hear that still worked for you!

  • @arnulfmayer6519
    @arnulfmayer6519 27 วันที่ผ่านมา

    There is no .cursorrules file at the root of my repository.

    • @YifanBTH
      @YifanBTH  22 วันที่ผ่านมา

      It's one that you manually create. If it doesn't exist, Cursor basically ignores custom commands.

    • @arnulfmayer6519
      @arnulfmayer6519 21 วันที่ผ่านมา

      @@YifanBTH Thanks, Yifan! I figured that out later. I am using your template all the time now. It's great!

  • @JustGu3ss
    @JustGu3ss 29 วันที่ผ่านมา

    @YifanBTH Can you show us how to setup windsurf and cursor into vs code please man.
    Love the tutorial and the rules file, thankyou. Very much appreciated my friend

    • @YifanBTH
      @YifanBTH  22 วันที่ผ่านมา +1

      you can run "ln -s ../.cursorrules copilot-instructions.md" inside the ".github" folder to link up the files

    • @JustGu3ss
      @JustGu3ss 20 วันที่ผ่านมา

      @YifanBTH thanks a million man for the response. I will give it a try tomorrow and hopefully I can make it work. I am still very much a noob at this.
      Wish me luck haha 😄

  • @vedaaaaaaant
    @vedaaaaaaant หลายเดือนก่อน +2

    Wouldn't this eat through the limited context window prvoided by the AI Text Editors?

    • @bchoor
      @bchoor หลายเดือนก่อน

      Should be part of the system message. So shouldn’t be sent over and over. Think of it as instructions to the assistant.

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน

      It can. Which is why you want to keep the rule file still concise. Given my current rules file is less than the average code file, it doesn't cause any issues.

  • @arunkumar-uo9tg
    @arunkumar-uo9tg หลายเดือนก่อน +1

    File brother please.

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน

      In the pinned comment now. Thanks for watching!

  • @nufh
    @nufh หลายเดือนก่อน

    Tell me, which one is better, Windsurf or Cursor?

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน +1

      It's a hard choice man. I currently spend time in all of VSCode, Cursor, and Windsurf. They're all great at slightly different things, but I think they are really catching up on each other. If you're already finding joy with one, I don't think there's any reason for you to switch!

    • @nufh
      @nufh หลายเดือนก่อน +1

      ​@@YifanBTH Windsurf is my first AI coding assistant, and I really love it. However, their credit system doesn’t work well for me-I used up my credits pretty quickly. I’m considering switching to Cursor.

  • @antoniofuller2331
    @antoniofuller2331 28 วันที่ผ่านมา

    Not bad son, not bad at all. . .

    • @YifanBTH
      @YifanBTH  22 วันที่ผ่านมา

      welcome

  • @dtory
    @dtory หลายเดือนก่อน

    hey can you share the file ( thanks ) anyways also sub

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน

      Thanks for watching! I have included the file in the pinned comment.

  • @petrosjr361
    @petrosjr361 หลายเดือนก่อน

    Coloque seus áudios dublados

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน

      What language would you like to see it dubbed in?

  • @ConservativeWatchParty
    @ConservativeWatchParty 12 วันที่ผ่านมา

    Good information, but I don’t feel like you told us how to do anything. You told us what to do but not how to do it.

    • @YifanBTH
      @YifanBTH  6 ชั่วโมงที่ผ่านมา

      Interesting to hear you say that. On one side, I thought I was over-sharing by giving too much detail. Let me know what specific you'd like to find out more.

  • @hughmitchellmusic
    @hughmitchellmusic หลายเดือนก่อน

    ai 100% does not guess everything. changing the way I instruct it has changed everything

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน

      I think we've all been poisoned by a lot of the video out there that shows you how to create things from just one line. In fact, most real-life things are far more complicated. If you don't want to spend the time writing good prompts, you're not gonna get good results.

  • @AbuBakr1
    @AbuBakr1 หลายเดือนก่อน

    People asking you to share this rule really are not serious or didn't watch the video at all....
    Copy pasters, then say: nah it didn't work for me 😅

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน

      Thanks for watching until the end. I've included the file in the pinned comment.

  • @yacn
    @yacn หลายเดือนก่อน +1

    m

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน

      m

    • @yacn
      @yacn หลายเดือนก่อน

      @YifanBTH haha

  • @witness1013
    @witness1013 หลายเดือนก่อน

    Wow - I couldn't disagree more with this absurd thesis on creating unnecessary - and mostly useless and confusing work for yourself and the LLM.

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน

      what would be your go to method?

  • @supertodda
    @supertodda หลายเดือนก่อน +3

    +1 for symlinking the files (i.e. ln -s .cursorrules .windsurfrules)

  • @cryptotrader5072
    @cryptotrader5072 12 วันที่ผ่านมา

    hello sir
    can please send me the rule.md you are making i am working on auto visa system and i want to learn some stuff from your rule file

    • @YifanBTH
      @YifanBTH  6 ชั่วโมงที่ผ่านมา

      The basic rules files are linked in the video. What kind of system are you trying to create?

    • @cryptotrader5072
      @cryptotrader5072 3 ชั่วโมงที่ผ่านมา

      @@YifanBTH auto appointment system

  • @BrentMalice
    @BrentMalice หลายเดือนก่อน

    oo i was getting it to keep .md for these like project structure and code. i need to get it to atleast check it in rules by default i guess this much better ty. i didn't know i could fit THAT MUCH into my rules without it ruining output. did have all my handy git commands tho.
    ai git > cli git > gui git

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน

      That was my initial thought too. You just have to be really selective about what you put in the files. I've seen a lot of reports on Cursor's Community Forums that people are having bad experiences with ultra-long cursor rules, which is why in the video I constantly iterate: "You want to put the rules that stop AI from making mistakes." If it's doing fine, don't change anything!

    • @BrentMalice
      @BrentMalice หลายเดือนก่อน

      @@YifanBTH had the agent build the structure like yours and that +the short description helped a lot.
      First try had too much info and I did notice it lost context but trimmed down to just that and now its alwaysssss using my types files and it can infer the rest ♥ THANKS COACH