<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>src/tools/rust-analyzer/editors/code/README.md - fork/rust @ master</title>
<meta name="description" content="src/tools/rust-analyzer/editors/code/README.md in fork/rust at master.">
<meta property="og:title" content="src/tools/rust-analyzer/editors/code/README.md - fork/rust @ master">
<meta property="og:description" content="src/tools/rust-analyzer/editors/code/README.md in fork/rust at master.">
<meta property="og:type" content="website">
<meta property="og:site_name" content="git.julia.blue">
<link rel="stylesheet" href="/css/style.css?v=62">
<script type="module" src="/js/main.js?v=62"></script>
</head>
<body>
<main data-ref="master" data-tip="3bcad65fbf67b6edf87c949531fbc13435882e6b">
<noscript>
  <div class="callout">
    <p>
      hey! this is a static git repo viewer. commit diffs, file history,
      older commits and other revisions won't load without javascript.
    </p>
    <p>
      you are still able to view source files on branch/tag tips,
      but the experience is degraded.
    </p>
  </div>
</noscript>
<header class="repo"><div>
<h1>fork/rust</h1>
</div>
<pre class="clone">git clone https://git.julia.blue/fork/rust</pre>
</header>
<p class="snapshot-commit"><span class="commit-author">bors</span><span class="commit-message" data-commit="3bcad65fbf67b6edf87c949531fbc13435882e6b">Auto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee</span><span class="snapshot-sha sha" data-commit="3bcad65fbf67b6edf87c949531fbc13435882e6b">3bcad65fbf6</span><time datetime="2023-10-05T15:24:54+00:00" title="2023-10-05 15:24:54 +0000">2023-10-05</time></p>
<header class="topbar"><details class="switcher"><summary>master</summary><div class="menu"><strong>branches</strong><a class="current" href="/fork/rust/ref/master/">master</a><strong>tags</strong><a href="/fork/rust/ref/1.39.0/">1.39.0</a><a href="/fork/rust/ref/1.40.0/">1.40.0</a><a href="/fork/rust/ref/1.41.0/">1.41.0</a><a href="/fork/rust/ref/1.41.1/">1.41.1</a><a href="/fork/rust/ref/1.42.0/">1.42.0</a><a href="/fork/rust/ref/1.43.0/">1.43.0</a><a href="/fork/rust/ref/1.43.1/">1.43.1</a><a href="/fork/rust/ref/1.44.0/">1.44.0</a><a class="all" href="/fork/rust/refs">all refs →</a></div></details><nav class="crumbs"><a href="/fork/rust/">rust</a> / <a href="/fork/rust/ref/master/tree/src/">src</a> / <a href="/fork/rust/ref/master/tree/src/tools/">tools</a> / <a href="/fork/rust/ref/master/tree/src/tools/rust-analyzer/">rust-analyzer</a> / <a href="/fork/rust/ref/master/tree/src/tools/rust-analyzer/editors/">editors</a> / <a href="/fork/rust/ref/master/tree/src/tools/rust-analyzer/editors/code/">code</a> / <span class="cur">README.md</span></nav>
<span class="view-stats"><span>2.4 KiB</span><span>52 lines</span></span><span class="actions"><a class="raw" href="/fork/rust/raw/36ab98188220ed247f8eae8814391db17c527a2f/src/tools/rust-analyzer/editors/code/README.md">raw</a></span></header>
<div class="markdown-view"><input type="radio" name="markdown-view" id="markdown-rendered" checked><label for="markdown-rendered">rendered</label><input type="radio" name="markdown-view" id="markdown-code"><label for="markdown-code">code</label><section class="readme rendered"><h1>rust-analyzer</h1>
<p>This extension provides support for the <a href="https://www.rust-lang.org/">Rust programming language</a>.
It is recommended over and replaces <code>rust-lang.rust</code>.</p>
<h2>Features</h2>
<ul>
<li><a href="https://rust-analyzer.github.io/manual.html#magic-completions">code completion</a> with <a href="https://rust-analyzer.github.io/manual.html#completion-with-autoimport">imports insertion</a></li>
<li>go to <a href="https://rust-analyzer.github.io/manual.html#go-to-definition">definition</a>, <a href="https://rust-analyzer.github.io/manual.html#go-to-implementation">implementation</a>, <a href="https://rust-analyzer.github.io/manual.html#go-to-type-definition">type definition</a></li>
<li><a href="https://rust-analyzer.github.io/manual.html#find-all-references">find all references</a>, <a href="https://rust-analyzer.github.io/manual.html#workspace-symbol">workspace symbol search</a>, <a href="https://rust-analyzer.github.io/manual.html#rename">symbol renaming</a></li>
<li><a href="https://rust-analyzer.github.io/manual.html#hover">types and documentation on hover</a></li>
<li><a href="https://rust-analyzer.github.io/manual.html#inlay-hints">inlay hints</a> for types and parameter names</li>
<li><a href="https://rust-analyzer.github.io/manual.html#semantic-syntax-highlighting">semantic syntax highlighting</a></li>
<li>a lot of <a href="https://rust-analyzer.github.io/manual.html#assists-code-actions">assists (code actions)</a></li>
<li>apply suggestions from errors</li>
<li>... and many more, check out the <a href="https://rust-analyzer.github.io/manual.html">manual</a> to see them all</li>
</ul>
<h2>Quick start</h2>
<ol>
<li>Install <a href="https://rustup.rs">rustup</a>.</li>
<li>Install the <a href="https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer">rust-analyzer extension</a>.</li>
</ol>
<h2>Configuration</h2>
<p>This extension provides configurations through VSCode's configuration settings. All configurations are under <code>rust-analyzer.*</code>.</p>
<p>See <a href="https://rust-analyzer.github.io/manual.html#vs-code-2">the manual</a> for more information on VSCode specific configurations.</p>
<h2>Communication</h2>
<p>For usage and troubleshooting requests, please use the <a href="https://users.rust-lang.org/c/ide/14">"IDEs and Editors" category of the Rust forum</a>.</p>
<h2>Documentation</h2>
<p>See <a href="https://rust-analyzer.github.io/">rust-analyzer.github.io</a> for more information.</p>
</section><div class="code-panel"><pre class="code src" data-hl="src/tools/rust-analyzer/editors/code/README.md"><span class="code-line"><a class="ln" id="L1" href="#L1">1</a><span class="code-text"># rust-analyzer</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L2" href="#L2">2</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L3" href="#L3">3</a><span class="code-text">This extension provides support for the [Rust programming language](https://www.rust-lang.org/).</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L4" href="#L4">4</a><span class="code-text">It is recommended over and replaces `rust-lang.rust`.</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L5" href="#L5">5</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L6" href="#L6">6</a><span class="code-text">## Features</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L7" href="#L7">7</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L8" href="#L8">8</a><span class="code-text">- [code completion] with [imports insertion]</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L9" href="#L9">9</a><span class="code-text">- go to [definition], [implementation], [type definition]</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L10" href="#L10">10</a><span class="code-text">- [find all references], [workspace symbol search], [symbol renaming]</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L11" href="#L11">11</a><span class="code-text">- [types and documentation on hover]</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L12" href="#L12">12</a><span class="code-text">- [inlay hints] for types and parameter names</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L13" href="#L13">13</a><span class="code-text">- [semantic syntax highlighting]</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L14" href="#L14">14</a><span class="code-text">- a lot of [assists (code actions)]</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L15" href="#L15">15</a><span class="code-text">- apply suggestions from errors</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L16" href="#L16">16</a><span class="code-text">- ... and many more, check out the [manual] to see them all</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L17" href="#L17">17</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L18" href="#L18">18</a><span class="code-text">[code completion]: https://rust-analyzer.github.io/manual.html#magic-completions</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L19" href="#L19">19</a><span class="code-text">[imports insertion]: https://rust-analyzer.github.io/manual.html#completion-with-autoimport</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L20" href="#L20">20</a><span class="code-text">[definition]: https://rust-analyzer.github.io/manual.html#go-to-definition</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L21" href="#L21">21</a><span class="code-text">[implementation]: https://rust-analyzer.github.io/manual.html#go-to-implementation</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L22" href="#L22">22</a><span class="code-text">[type definition]: https://rust-analyzer.github.io/manual.html#go-to-type-definition</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L23" href="#L23">23</a><span class="code-text">[find all references]: https://rust-analyzer.github.io/manual.html#find-all-references</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L24" href="#L24">24</a><span class="code-text">[workspace symbol search]: https://rust-analyzer.github.io/manual.html#workspace-symbol</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L25" href="#L25">25</a><span class="code-text">[symbol renaming]: https://rust-analyzer.github.io/manual.html#rename</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L26" href="#L26">26</a><span class="code-text">[types and documentation on hover]: https://rust-analyzer.github.io/manual.html#hover</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L27" href="#L27">27</a><span class="code-text">[inlay hints]: https://rust-analyzer.github.io/manual.html#inlay-hints</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L28" href="#L28">28</a><span class="code-text">[semantic syntax highlighting]: https://rust-analyzer.github.io/manual.html#semantic-syntax-highlighting</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L29" href="#L29">29</a><span class="code-text">[assists (code actions)]: https://rust-analyzer.github.io/manual.html#assists-code-actions</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L30" href="#L30">30</a><span class="code-text">[manual]: https://rust-analyzer.github.io/manual.html</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L31" href="#L31">31</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L32" href="#L32">32</a><span class="code-text">## Quick start</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L33" href="#L33">33</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L34" href="#L34">34</a><span class="code-text">1. Install [rustup].</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L35" href="#L35">35</a><span class="code-text">2. Install the [rust-analyzer extension].</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L36" href="#L36">36</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L37" href="#L37">37</a><span class="code-text">[rustup]: https://rustup.rs</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L38" href="#L38">38</a><span class="code-text">[rust-analyzer extension]: https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L39" href="#L39">39</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L40" href="#L40">40</a><span class="code-text">## Configuration</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L41" href="#L41">41</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L42" href="#L42">42</a><span class="code-text">This extension provides configurations through VSCode's configuration settings. All configurations are under `rust-analyzer.*`.</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L43" href="#L43">43</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L44" href="#L44">44</a><span class="code-text">See [the manual](https://rust-analyzer.github.io/manual.html#vs-code-2) for more information on VSCode specific configurations.</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L45" href="#L45">45</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L46" href="#L46">46</a><span class="code-text">## Communication</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L47" href="#L47">47</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L48" href="#L48">48</a><span class="code-text">For usage and troubleshooting requests, please use the [&quot;IDEs and Editors&quot; category of the Rust forum](https://users.rust-lang.org/c/ide/14).</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L49" href="#L49">49</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L50" href="#L50">50</a><span class="code-text">## Documentation</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L51" href="#L51">51</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L52" href="#L52">52</a><span class="code-text">See [rust-analyzer.github.io](https://rust-analyzer.github.io/) for more information.</span></span></pre></div></div>
</main>
</body>
</html>
