<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>djkazunoko</author_name>
  <author_url>https://blog.hatena.ne.jp/djkazunoko/</author_url>
  <blog_title>あまブログ</blog_title>
  <blog_url>https://ama-tech.hatenablog.com/</blog_url>
  <categories>
    <anon>Rails</anon>
    <anon>Ruby</anon>
    <anon>VSCode</anon>
  </categories>
  <description>この記事では、Prettier for Rubyを使って、Railsのコードを自動フォーマットする方法を紹介します。 VSCodeでファイルを保存する際に自動フォーマットできるようになります。 1. 検証環境 2. 設定手順 2-1. @prettier/plugin-rubyのインストール 2-2. gemのインストール 2-3. prettier-vscodeのインストール 2-4. rubocopと一緒に使う場合 3. フォーマット結果 1. 検証環境 Ruby：3.1.0 Rails：6.1.4.7 node：16.13.0 yarn：1.22.19 bundler：2.3.6 VSC…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fama-tech.hatenablog.com%2Fauto-formatting-rails-code-with-prettier-for-ruby&quot; title=&quot;【VSCode+Prettier】Railsのコードを自動フォーマットする - あまブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-05-23 17:28:48</published>
  <title>【VSCode+Prettier】Railsのコードを自動フォーマットする</title>
  <type>rich</type>
  <url>https://ama-tech.hatenablog.com/auto-formatting-rails-code-with-prettier-for-ruby</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
