web/visualstudiocode の履歴の現在との差分(No.2)


  • 追加された行はこの色です。
  • 削除された行はこの色です。
#author("2023-10-21T15:09:08+09:00","default:nemusg.pad","nemusg.pad")
* VisualStudioCodeの設定とか [#xc119885]
#author("2024-04-28T01:54:30+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]]