1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【Chrome拡張機能】 ChatGPTが生成したコードをプレビューする

Posted at

はじめに

Chrome拡張機能を使用して、ChatGPTが生成したコードをプレビューできるようにします。
この機能を使うと、コードを生成してすぐにプレビューを確認できるので、効率よくプログラミングできます。

完成イメージ

image.png

手順

Chrome拡張機能を追加します。

以下のリンクから拡張ファイル (manifest.json、content.js、styles.css) をダウンロードします。(コード→Zipをダウンロードして展開)

image.png

Chrome ブラウザを開き、 chrome://extensions/に移動します。
右上隅の「開発者モード」を有効にします。

image.png

「解凍して読み込む」をクリックし、拡張ファイルが含まれているフォルダを選択します。

image.png

image.png

拡張機能が追加されます。これで準備完了です。

image.png

使い方

ChatGPTにログインします。

「HTMLで適当なアプリを作成して」などのプロンプトを入力すると、コードが生成されると思いますので、実行してください。コードの下にPreview Codeというボタンが表示されるのでクリックすると、プレビューが表示されます。

image.png

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?