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

Arch linuxにvscodeをインストールする恣意的ノート

1
Last updated at Posted at 2024-08-24

軽量テキストエディタであるplumaのハイフネーションがどうしても取れなかったため、この際リッチなテキストエディタであるvscodeに乗り換えることに決め、インストールをした次第でございます。

yay -S code

あとは、
・VScodeVimのプラグインをインストールして、キーバインドをvimライクにする。
・.vimrcを読み込むようにする。"vim.vimrc.enable": true, "vim.vimrc.path": "/home/gar/.config/nvim/init.vim",
・固定幅フォントは"Myrica M"と、"源ノ角ゴシック","BIZ UDゴシック"がずれません。あとのは、どうしてだかずれるようです。どうも、"BIZ UDゴシック"が一番いいようです。
・設定ファイルに"editor.stickyScroll.enabled": false,を追加。スティッキースクロールは邪魔なので。
・設定ファイルに"editor.wordWrap": "on",を追加。テキストを右端で折り返す。
・信頼するディレクトリに/home/$USER/を入れる。

設定ファイルはこんな感じでいいかな。

~/.config/Code - OSS/User/settings.json
{
	"workbench.settings.useSplitJSON": true,
	"editor.formatOnSave": true,
	"emmet.variables": {
		"lang": "ja",
	},
	"window.zoomLevel": 0,
	"workbench.startupEditor": "newUntitledFile",
	"editor.fontSize": 20,
	"editor.tabSize": 4,
	"editor.fontFamily": "BIZ UDゴシック",
	"editor.fontLigatures": true,
	"editor.detectIndentation": false,
	"editor.insertSpaces": false,
	"editor.wordWrap": "on",
	"editor.stickyScroll.enabled": false,
	"html.format.extraLiners": "",
	"html.format.preserveNewLines": false,
	"editor.renderWhitespace": "boundary",
	"editor.minimap.showSlider": "always",
	"editor.quickSuggestions": {
		"strings": true,
	},
	"editor.suggest.insertMode": "replace",
	"files.eol": "\n",
	"vim.vimrc.enable": true,
	"vim.vimrc.path": "/home/gar/.config/nvim/init.vim",
	"window.newWindowDimensions": "inherit",
	"workbench.editor.empty.hint": "hidden"
}

VScodeはかっこいいけど、慣れるのは大変そう。とりあえず。これでOK。

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