#author("2024-09-29T23:11:48+09:00","default:nemusg.pad","nemusg.pad") #author("2024-09-29T23:12:03+09:00","default:nemusg.pad","nemusg.pad") #title(VisualStudioCode(VSCode)の設定) ** 初期設定 [#b3b754cd] - [[ダウンロード:https://azure.microsoft.com/ja-jp/products/visual-studio-code/]] - 拡張機能(プラグイン) -- Japanese Language Pack for Visual Studio Code -- Insert Numbers --- [[特定の文字列を連番に置換したい:https://nemusg.com/archives/vscode-numbers.html]] -- Prettier(コードを自動で整形) -- markuplint(HTMLの文法チェック) -- ESLint(JSの文法チェック) -- Stylelint(CSSの文法チェック) -- Code Spell Checker(タイプミスを指摘) -- auto rename tag(閉じタグを自動入力) -- LiveShare(ペアプロ的なことするなら) *** 設定を同期する [#med52142] - 左下のアイコンから「アカウント」を選択 - GitHubアカウントでサインインする *** マルチカーソルの使い方 [#x45a2447] - ALTを押しながら手動で選択していく - command + shift + Lで一括選択 *** GitHubを使う [#w7efc904] - ソース管理 > Gitリポジトリのクローン > https://github.com/nemusg/mywebs.git - /Users/nemusg/Documents/GitHub/nemusg を選択(ここにmywebsが作成される) - 「ワークスペースに追加」を選択するとソース管理リポジトリに追加される There are no staged changes to commit. Would you like to stage all your changes and commit them directly? #ref(web/visualstudiocode/clone_error.png,50%) - Filename too longでクローンに成功しない場合…… -- (Windowsの?)ターミナルを開いて git config --global core.longpaths true -- [[gitでtoo long unableが起きた時の解消法:https://zenn.dev/uyawer/articles/tech-20220523-git-too-long-unable]] - ログイン ...mywebs> git config --global user.name 'hogehoge' ...mywebs> git config --global user.email 'hogehoge@gmail.com' *** EUC-JPのファイルが文字化けする [#w653c068] - 設定(`CTRL+,`) > テキストエディター > ファイル > Auto Guess Encodingにチェックを入れる ** その他の拡張機能 [#ndb5975b] - Sort lines -- [[【VScode】Sort linesでテキストの並び替えをする – IT Learning:https://obenkyolab.com/?p=3359]] ** その他 [#vcdfdecf] - [[2つのファイルの内容を比較して差分を表示する:https://www.javadrive.jp/vscode/editor/index3.html]] - [[VS Code 1.91.0 起動できない問題は使ってる Mac の OS が古いことが原因だったのでバージョンを 1.90.2 に戻したら起動できた:https://weblog.ict-yorozu.com/vscode-191-macosbigsur-not-starting/]] - [[VSCodeで生産性を上げる:https://zenn.dev/ultrasupara/articles/174429511504c7]] - [[VScodeの邪魔すぎるポップアップ(ツールチップ)を消し去る設定方法(Visual Studio Code)ビジュアルスタジオコード:https://pinkmonky.net/detail/?id=169]] 人によっては必要らしい - [[VScodeの邪魔すぎるポップアップ(ツールチップ)を消し去る設定方法:https://pinkmonky.net/detail/?id=169]] 人によっては必要らしい