3
1

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.

Sphinx+VSCodeでプレビューを見たい!

Last updated at Posted at 2023-02-24

環境

  • Windows10
  • python 3.9.7
  • sphinx 4.2.0
  • VSCode

方法

以下の拡張機能をインストールする.

  • reStructuredText
  • Extension Pack for reStructuredText

/.vscode/settings.jsonにこれを書く.

settings.json
{
    "esbonio.sphinx.buildDir" : "${workspaceFolder}/_build/html",
    "esbonio.sphinx.confDir"  : "${workspaceFolder}",
    "esbonio.sphinx.srcDir"   : "${workspaceFolder}"
}

うまくいくとこんな感じになる.
2023-02-24.png

備考

"Extension Pack for reStructuredText"をインストールし忘れると生のhtmlのプレビューになってしまう...

参考文献

3
1
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
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?