<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://xuxuewen.github.io/feed.xml" rel="self" type="application/atom+xml" /><link href="https://xuxuewen.github.io/" rel="alternate" type="text/html" /><updated>2024-09-13T03:54:26+00:00</updated><id>https://xuxuewen.github.io/feed.xml</id><title type="html">许学文的博客</title><subtitle>这是我的个人博客,使用GitHub Pages搭建。</subtitle><author><name>许学文</name><email>your-email@example.com</email></author><entry><title type="html"></title><link href="https://xuxuewen.github.io/2024/09/13/2024-03-22-how-to-use-cursor-mention-feature.html" rel="alternate" type="text/html" title="" /><published>2024-09-13T03:54:26+00:00</published><updated>2024-09-13T03:54:26+00:00</updated><id>https://xuxuewen.github.io/2024/09/13/2024-03-22-how-to-use-cursor-mention-feature</id><content type="html" xml:base="https://xuxuewen.github.io/2024/09/13/2024-03-22-how-to-use-cursor-mention-feature.html"><![CDATA[<h1 id="如何使用cursor的mention功能">如何使用Cursor的@mention功能</h1>

<p>Cursor是一款强大的代码编辑器,其中的@mention功能可以大大提高您的编码效率。本文将介绍如何使用这个实用的功能。</p>

<p>// … 文章内容保持不变 …</p>]]></content><author><name>许学文</name><email>your-email@example.com</email></author></entry><entry><title type="html">如何使用Cursor的@mention功能</title><link href="https://xuxuewen.github.io/%E5%B7%A5%E5%85%B7/%E7%BC%96%E7%A8%8B/2024/03/21/how-to-use-cursor-mention-feature.html" rel="alternate" type="text/html" title="如何使用Cursor的@mention功能" /><published>2024-03-21T00:00:00+00:00</published><updated>2024-03-21T00:00:00+00:00</updated><id>https://xuxuewen.github.io/%E5%B7%A5%E5%85%B7/%E7%BC%96%E7%A8%8B/2024/03/21/how-to-use-cursor-mention-feature</id><content type="html" xml:base="https://xuxuewen.github.io/%E5%B7%A5%E5%85%B7/%E7%BC%96%E7%A8%8B/2024/03/21/how-to-use-cursor-mention-feature.html"><![CDATA[<h1 id="如何使用cursor的mention功能">如何使用Cursor的@mention功能</h1>

<p>Cursor是一款强大的代码编辑器,其中的@mention功能可以大大提高您的编码效率。本文将介绍如何使用这个实用的功能。</p>

<h2 id="什么是mention功能">什么是@mention功能?</h2>

<p>@mention功能允许您在编码时快速引用和访问项目中的文件、函数或变量。通过输入@符号followed by文件名或符号名,您可以快速跳转到相关代码或插入引用。</p>

<h2 id="如何使用mention">如何使用@mention</h2>

<ol>
  <li>在Cursor编辑器中,输入@符号</li>
  <li>开始输入您想要引用的文件名、函数名或变量名</li>
  <li>Cursor会显示匹配的建议列表</li>
  <li>使用箭头键选择所需项,然后按Enter确认</li>
</ol>

<h2 id="mention的优势">@mention的优势</h2>

<ul>
  <li>快速导航:轻松跳转到项目中的任何文件或函数</li>
  <li>提高准确性:减少拼写错误和路径错误</li>
  <li>节省时间:无需手动搜索或记忆完整路径</li>
  <li>增强协作:在注释中使用@mention可以更清晰地引用代码</li>
</ul>

<h2 id="实用技巧">实用技巧</h2>

<ul>
  <li>使用@mention引用其他文件中的函数时,Cursor会自动添加必要的import语句</li>
  <li>在注释中使用@mention可以创建智能链接,方便团队成员快速查看相关代码</li>
  <li>结合Cursor的AI功能,您可以更智能地使用@mention,获得更多上下文相关的建议</li>
</ul>

<p>通过熟练使用@mention功能,您可以显著提高编码效率,让代码导航和引用变得更加轻松。开始尝试使用这个强大的功能吧!</p>]]></content><author><name>许学文</name><email>your-email@example.com</email></author><category term="工具" /><category term="编程" /><summary type="html"><![CDATA[如何使用Cursor的@mention功能]]></summary></entry><entry><title type="html">我第一次使用Cursor开发产品的体验记录</title><link href="https://xuxuewen.github.io/jekyll/update/2023/10/02/my-first-experience-with-cursor.html" rel="alternate" type="text/html" title="我第一次使用Cursor开发产品的体验记录" /><published>2023-10-02T04:00:00+00:00</published><updated>2023-10-02T04:00:00+00:00</updated><id>https://xuxuewen.github.io/jekyll/update/2023/10/02/my-first-experience-with-cursor</id><content type="html" xml:base="https://xuxuewen.github.io/jekyll/update/2023/10/02/my-first-experience-with-cursor.html"><![CDATA[<h1 id="我第一次使用cursor开发产品的体验记录">我第一次使用Cursor开发产品的体验记录</h1>

<p>在这篇文章中，我将分享我第一次使用Cursor开发产品的体验。</p>

<h2 id="初次接触">初次接触</h2>

<p>当我第一次听说Cursor时，我对它的功能和潜力感到非常好奇。Cursor是一款强大的开发工具，旨在简化和加速开发过程。</p>

<p><img src="https://github.com/xuxuewen/xuxuewen.github.io/raw/main/images/cursor-logo.png" alt="Cursor Logo" /></p>

<h2 id="安装和设置">安装和设置</h2>

<p>安装Cursor非常简单，只需按照官方文档的步骤进行操作即可。设置过程也非常直观，我很快就能够上手使用。</p>

<h2 id="使用体验">使用体验</h2>

<p>在使用Cursor的过程中，我发现它的界面非常友好，功能也非常强大。以下是我在使用过程中最喜欢的一些功能：</p>

<ol>
  <li><strong>实时预览</strong>：Cursor提供了实时预览功能，可以让我在编写代码的同时看到效果，大大提高了开发效率。</li>
  <li><strong>智能提示</strong>：Cursor的智能提示功能非常强大，可以帮助我快速找到需要的代码片段和函数。</li>
  <li><strong>调试工具</strong>：Cursor内置了强大的调试工具，可以让我轻松地找到和修复代码中的问题。</li>
</ol>

<p><img src="https://github.com/xuxuewen/xuxuewen.github.io/raw/main/images/cursor-screenshot.png" alt="Cursor Screenshot" /></p>

<h2 id="使用-vue-3-开发组件的示例代码">使用 Vue 3 开发组件的示例代码</h2>

<p>在这里，我将展示一个简单的 Vue 3 组件示例代码：</p>

<figure class="highlight"><pre><code class="language-html" data-lang="html"><span class="c">&lt;!-- App.vue --&gt;</span>
<span class="nt">&lt;template&gt;</span>
  <span class="nt">&lt;div</span> <span class="na">id=</span><span class="s">"app"</span><span class="nt">&gt;</span>
    <span class="nt">&lt;HelloWorld</span> <span class="na">msg=</span><span class="s">"Welcome to Your Vue.js App"</span><span class="nt">/&gt;</span>
  <span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/template&gt;</span>

<span class="nt">&lt;script&gt;</span>
<span class="k">import</span> <span class="nx">HelloWorld</span> <span class="k">from</span> <span class="dl">'</span><span class="s1">./components/HelloWorld.vue</span><span class="dl">'</span>

<span class="k">export</span> <span class="k">default</span> <span class="p">{</span>
  <span class="na">name</span><span class="p">:</span> <span class="dl">'</span><span class="s1">App</span><span class="dl">'</span><span class="p">,</span>
  <span class="na">components</span><span class="p">:</span> <span class="p">{</span>
    <span class="nx">HelloWorld</span>
  <span class="p">}</span>
<span class="p">}</span>
<span class="nt">&lt;/script&gt;</span>

<span class="nt">&lt;style&gt;</span>
<span class="nf">#app</span> <span class="p">{</span>
  <span class="nl">font-family</span><span class="p">:</span> <span class="n">Avenir</span><span class="p">,</span> <span class="n">Helvetica</span><span class="p">,</span> <span class="n">Arial</span><span class="p">,</span> <span class="nb">sans-serif</span><span class="p">;</span>
  <span class="nl">-webkit-font-smoothing</span><span class="p">:</span> <span class="n">antialiased</span><span class="p">;</span>
  <span class="nl">-moz-osx-font-smoothing</span><span class="p">:</span> <span class="n">grayscale</span><span class="p">;</span>
  <span class="nl">text-align</span><span class="p">:</span> <span class="nb">center</span><span class="p">;</span>
  <span class="nl">color</span><span class="p">:</span> <span class="m">#2c3e50</span><span class="p">;</span>
  <span class="nl">margin-top</span><span class="p">:</span> <span class="m">60px</span><span class="p">;</span>
<span class="p">}</span>
<span class="nt">&lt;/style&gt;</span></code></pre></figure>

<figure class="highlight"><pre><code class="language-html" data-lang="html"><span class="c">&lt;!-- components/HelloWorld.vue --&gt;</span>
<span class="nt">&lt;template&gt;</span>
  <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"hello"</span><span class="nt">&gt;</span>
    <span class="nt">&lt;h1&gt;&lt;/h1&gt;</span>
  <span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/template&gt;</span>

<span class="nt">&lt;script&gt;</span>
<span class="k">export</span> <span class="k">default</span> <span class="p">{</span>
  <span class="na">name</span><span class="p">:</span> <span class="dl">'</span><span class="s1">HelloWorld</span><span class="dl">'</span><span class="p">,</span>
  <span class="na">props</span><span class="p">:</span> <span class="p">{</span>
    <span class="na">msg</span><span class="p">:</span> <span class="nb">String</span>
  <span class="p">}</span>
<span class="p">}</span>
<span class="nt">&lt;/script&gt;</span>

<span class="nt">&lt;style </span><span class="na">scoped</span><span class="nt">&gt;</span>
<span class="nt">h1</span> <span class="p">{</span>
  <span class="nl">font-weight</span><span class="p">:</span> <span class="nb">normal</span><span class="p">;</span>
<span class="p">}</span>
<span class="nt">&lt;/style&gt;</span></code></pre></figure>

<h2 id="总结">总结</h2>

<p>总的来说，我对Cursor的使用体验非常满意。它不仅提高了我的开发效率，还让我在开发过程中感到非常愉快。我强烈推荐给所有开发者尝试使用Cursor。</p>

<p>希望这篇文章对您有所帮助。如果您有任何问题或建议，请随时与我联系。</p>

<p><img src="https://github.com/xuxuewen/xuxuewen.github.io/raw/main/images/image.png" alt="Additional Image" /></p>]]></content><author><name>许学文</name><email>your-email@example.com</email></author><category term="jekyll" /><category term="update" /><summary type="html"><![CDATA[我第一次使用Cursor开发产品的体验记录]]></summary></entry><entry><title type="html">Hello</title><link href="https://xuxuewen.github.io/jekyll/update/2023/10/01/hello.html" rel="alternate" type="text/html" title="Hello" /><published>2023-10-01T04:00:00+00:00</published><updated>2023-10-01T04:00:00+00:00</updated><id>https://xuxuewen.github.io/jekyll/update/2023/10/01/hello</id><content type="html" xml:base="https://xuxuewen.github.io/jekyll/update/2023/10/01/hello.html"><![CDATA[<p>Hello, 这是一个简单的博客文章示例。</p>]]></content><author><name>许学文</name><email>your-email@example.com</email></author><category term="jekyll" /><category term="update" /><summary type="html"><![CDATA[Hello, 这是一个简单的博客文章示例。]]></summary></entry><entry><title type="html">欢迎来到我的博客</title><link href="https://xuxuewen.github.io/jekyll/update/2023/04/15/welcome-to-my-blog.html" rel="alternate" type="text/html" title="欢迎来到我的博客" /><published>2023-04-15T04:00:00+00:00</published><updated>2023-04-15T04:00:00+00:00</updated><id>https://xuxuewen.github.io/jekyll/update/2023/04/15/welcome-to-my-blog</id><content type="html" xml:base="https://xuxuewen.github.io/jekyll/update/2023/04/15/welcome-to-my-blog.html"><![CDATA[<p>这是我的第一篇博客文章。在这里,我将分享我的想法、经验和知识。</p>

<h2 id="为什么我开始写博客">为什么我开始写博客</h2>

<p>写博客可以帮助我:</p>

<ol>
  <li>整理思路</li>
  <li>分享知识</li>
  <li>记录成长</li>
</ol>

<p>希望您能喜欢我的博客内容!</p>]]></content><author><name>许学文</name><email>your-email@example.com</email></author><category term="jekyll" /><category term="update" /><summary type="html"><![CDATA[这是我的第一篇博客文章。在这里,我将分享我的想法、经验和知识。]]></summary></entry></feed>