<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>VS Code on yyh-gl's Tech Blog</title><link>https://tech.yyh-gl.dev/categories/vs-code/</link><description>Recent content in VS Code on yyh-gl's Tech Blog</description><generator>Hugo -- gohugo.io</generator><language>ja</language><lastBuildDate>Fri, 10 Jan 2025 19:34:56 +0900</lastBuildDate><atom:link href="https://tech.yyh-gl.dev/categories/vs-code/index.xml" rel="self" type="application/rss+xml"/><item><title>VS Codeのeditor.quickSuggestionsについて調べたメモ</title><link>https://tech.yyh-gl.dev/blog/vs-code-settings-editor-quick-suggestions/</link><pubDate>Fri, 10 Jan 2025 19:34:56 +0900</pubDate><guid>https://tech.yyh-gl.dev/blog/vs-code-settings-editor-quick-suggestions/</guid><description>&lt;h1 id="はじめに">はじめに&lt;/h1>
&lt;p>VS Codeの設定に&lt;code>editor.quickSuggestions&lt;/code>というものがある。&lt;br>
サジェストを出すかどうかを設定できる。&lt;/p>
&lt;p>サジェストというのは以下のようなやつ。&lt;/p>
&lt;img src="https://tech.yyh-gl.dev/img/2025/01/vs-code-settings-editor-quick-suggestions/suggest.webp" width="600">
&lt;p>この設定項目について調べたのでメモを残す。&lt;/p>
&lt;h1 id="editorquicksuggestions">editor.quickSuggestions&lt;/h1>
&lt;p>&lt;code>editor.quickSuggestions&lt;/code>は以下のような設定ができる。&lt;/p>
&lt;pre>&lt;code class="language-json">&amp;quot;editor.quickSuggestions&amp;quot;: {
&amp;quot;other&amp;quot;: &amp;quot;on&amp;quot;,
&amp;quot;comments&amp;quot;: &amp;quot;off&amp;quot;,
&amp;quot;strings&amp;quot;: &amp;quot;off&amp;quot;
},
&lt;/code>&lt;/pre>
&lt;p>ref: &lt;a href="https://code.visualstudio.com/docs/getstarted/settings" target="_blank" rel="noopener noreferrer">https://code.visualstudio.com/docs/getstarted/settings&lt;/a>
&lt;/p>
&lt;p>&lt;code>other&lt;/code>, &lt;code>comments&lt;/code>, &lt;code>strings&lt;/code> の意味がわからず、調べた内容をメモする。&lt;/p>
&lt;p>なお、公式Docsから各項目に関する説明を見つけられなかったので、
ChatGPTにざっくりした説明を聞いたうえで、実際に設定をon/offして挙動を確認した。&lt;br>
よって、後述の説明はあくまで自分の解釈であることに注意。&lt;br>
おそらく文字どおりの意味だから説明がない…？&lt;br>
公式Docsの説明を見つけたら更新する。&lt;br>
（ChatGPTからの回答で「VS Codeドキュメントによると」って言われたんだけどね）&lt;/p>
&lt;h2 id="comments">comments&lt;/h2>
&lt;p>コメント内でのサジェスト有効/無効を設定できる。&lt;/p>
&lt;img src="https://tech.yyh-gl.dev/img/2025/01/vs-code-settings-editor-quick-suggestions/suggest_in_comment.webp" width="600">
&lt;h2 id="strings">strings&lt;/h2>
&lt;p>文字列リテラル内でのサジェスト有効/無効を設定できる。&lt;/p>
&lt;img src="https://tech.yyh-gl.dev/img/2025/01/vs-code-settings-editor-quick-suggestions/suggest_in_strings.webp" width="600">
&lt;h2 id="other">other&lt;/h2>
&lt;p>その他の場所におけるサジェスト有効/無効を設定できる。&lt;/p>
&lt;p>コード書いてるときに出てくるサジェストの大半はこれに該当するはず。&lt;/p>
&lt;h1 id="調査背景">調査背景&lt;/h1>
&lt;p>自分はMarkdown編集時に改行や強調などのHTMLタグをよく使う。&lt;br>
HTMLやReact, Vueなどのコードを書いているときのようにHTMLタグをサジェストしてほしい。&lt;br>
（&lt;code>&amp;lt;&lt;/code>や&lt;code>&amp;gt;&lt;/code>、閉じタグを打つのめんどくさいし）&lt;br>
よって、Markdown編集時によく使うHTMLタグは、snippetに登録し、サジェストされるようにしている。&lt;/p>
&lt;p>しかし、VS Codeのデフォルト設定では、Markdownに関するサジェストが出ないようになっている。&lt;br>
Markdownに関するサジェストを有効にできないか調べていると&lt;code>editor.quickSuggestions&lt;/code>にたどり着いた。&lt;/p></description></item></channel></rss>