Windowsで環境設定(主にMac操作に慣れている方むけ)

# はじめに
Windowsで環境設定を行うための覚書
毎回ググるのでまとめて記載を行う

# 環境設定
## Chocolatlyを設定
https://qiita.com/takuzo8679/items/165fc38fe4a1a6b267cb

Powershellで以下コマンド起動
```
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
```

## SakueaEditorをインストール
```
choco install sakuraeditor -y
```

## powertoys
設定は後で
```
choco install powertoys -y
```

## Google日本語入力
設定は後で
```
choco install googlejapaneseinput -y
```

## ブラウザ
```
choco install vivaldi -y
```
# ユーティリティ群の設定
## ファイラー
AS/Rがおすすめ
[公式HP](https://all.undo.jp/asr/)

<details><summary>As/Rの設定</summary>

### As/Rの設定
#### タブの設定
* ダブルクリックでナビゲートロックに切り替え
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/242808/51cef690-7681-76bf-5bd2-469418a1ba28.png)
* 中クリック(ホイールクリック)で現在のウィンドウを閉じるに切り替え
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/242808/b6d5d4fe-89ee-f6dc-80de-18d557f45f8a.png)
#### 詳細一覧の一行選択を解除
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/242808/2a09f944-f765-80c2-bb3a-ccd3c0af5656.png)

#### マウスジェスチャ
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/242808/9715c57d-a282-b74b-066b-56fe62a88012.png)

#### コマンド定義ファイルの編集
設定フォルダ内
`\Menu\_ListContextMenu.txt`を編集
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/242808/98e412e4-a15c-6855-5404-be9fff86393e.png)
末尾に以下2行を追加
```
MENUITEM	ファイル名のコピー(&C)	35650
MENUITEM	フルパスで名前をコピー(&F)	35651
```
右グリックメニューから、ファイル名のコピーコマンドが表示される
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/242808/1dc16f10-4943-6caf-565e-10002d22f2f2.png)

</details>

## クリップボード管理
Cliborをインストール
https://chigusa-web.com/clibor/

## Excel Addin
Relax Tools
All In On AddIn
一旦これ入れたらあとは良いかと

https://forest.watch.impress.co.jp/library/software/relaxtools/

# 開発ツール等
## git
```
choco install git -y
```
## vscode
```
choco install vscode -y
```

## vscode
```
choco install vscode -y
```

### VsCode周り
#### PlantUmlを記載する場合
#### graphviz
```
choco install graphviz -y
```

#### Markdown Preview Enhanced
Markdownの中に、PlantUmlの埋め込みが可能になる
PDF出力は、この機能を使用ことする
https://marketplace.visualstudio.com/items?itemName=shd101wyy.markdown-preview-enhanced

#### 
# 参考URL
## chocolatey
* 公式
https://docs.chocolatey.org/en-us/guides/usage/proxy-settings-for-chocolatey
* 認証プロキシ環境下でのchocolateyインストール
https://qiita.com/geotrader/items/33b5db1832bb42979ba9

## 日本語入力
変換キー群をMacライクに設定
以下キーマップを設定
1. 後述のキーマップの内容をテキスト(UTF-8)で保存
あくまで個人的な好みのコマンドなので、インポート後編集してください
1. プロパティから、`キー設定の選択`の`編集`をクリック
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/242808/f5955830-cd75-66dc-1b1c-37f606f3583e.png)
1. `編集`のドロップダウンから`インポート`をクリック

### GoogleInputキーマップ
<details><summary>キーマップ</summary>

```
status	key	command
Conversion	Backspace	Cancel
Composition	Backspace	Backspace
Precomposition	Backspace	Revert
Composition	Ctrl a	MoveCursorToBeginning
Conversion	Ctrl a	SegmentFocusFirst
Conversion	Ctrl Backspace	Cancel
Precomposition	Ctrl Backspace	Undo
Composition	Ctrl Backspace	Backspace
Composition	Ctrl d	MoveCursorRight
Conversion	Ctrl d	SegmentFocusRight
Prediction	Ctrl Delete	DeleteSelectedCandidate
Composition	Ctrl Down	MoveCursorToEnd
Conversion	Ctrl Down	CommitOnlyFirstSegment
Composition	Ctrl e	MoveCursorToBeginning
Conversion	Ctrl e	ConvertPrev
Composition	Ctrl Enter	Commit
Conversion	Ctrl Enter	Commit
Composition	Ctrl f	MoveCursorToEnd
Conversion	Ctrl f	SegmentFocusLast
Conversion	Ctrl g	Cancel
Composition	Ctrl g	Delete
Conversion	Ctrl h	Cancel
Composition	Ctrl h	Backspace
Composition	Ctrl i	ConvertToFullKatakana
Conversion	Ctrl i	ConvertToFullKatakana
Composition	Ctrl k	MoveCursorLeft
Conversion	Ctrl k	SegmentWidthShrink
Composition	Ctrl l	MoveCursorRight
Conversion	Ctrl l	SegmentWidthExpand
Composition	Ctrl Left	MoveCursorToBeginning
Conversion	Ctrl Left	SegmentFocusFirst
Composition	Ctrl m	Commit
Conversion	Ctrl m	Commit
Composition	Ctrl n	MoveCursorToEnd
Conversion	Ctrl n	CommitOnlyFirstSegment
Composition	Ctrl o	ConvertToHalfWidth
Conversion	Ctrl o	ConvertToHalfWidth
Composition	Ctrl p	ConvertToFullAlphanumeric
Conversion	Ctrl p	ConvertToFullAlphanumeric
Composition	Ctrl Right	MoveCursorToEnd
Conversion	Ctrl Right	SegmentFocusLast
Composition	Ctrl s	MoveCursorLeft
Conversion	Ctrl s	SegmentFocusLeft
Composition	Ctrl Shift Space	InsertFullSpace
Conversion	Ctrl Shift Space	InsertFullSpace
Precomposition	Ctrl Shift Space	InsertFullSpace
Composition	Ctrl Space	InsertHalfSpace
Conversion	Ctrl Space	InsertHalfSpace
Composition	Ctrl t	ConvertToHalfAlphanumeric
Conversion	Ctrl t	ConvertToHalfAlphanumeric
Composition	Ctrl u	ConvertToHiragana
Conversion	Ctrl u	ConvertToHiragana
Composition	Ctrl Up	MoveCursorToBeginning
Conversion	Ctrl Up	ConvertPrev
Composition	Ctrl x	MoveCursorToEnd
Conversion	Ctrl x	ConvertNext
Composition	Ctrl z	Cancel
Conversion	Ctrl z	Cancel
Conversion	Delete	Cancel
Composition	Delete	Delete
Composition	Down	MoveCursorToEnd
Conversion	Down	ConvertNext
Suggestion	Down	PredictAndConvert
DirectInput	Eisu	IMEOn
Composition	Eisu	ToggleAlphanumericMode
Conversion	Eisu	ToggleAlphanumericMode
Precomposition	Eisu	ToggleAlphanumericMode
Composition	End	MoveCursorToEnd
Conversion	End	SegmentFocusLast
Composition	Enter	Commit
Conversion	Enter	Commit
Composition	ESC	Cancel
Conversion	ESC	Cancel
Composition	F10	ConvertToHalfAlphanumeric
Conversion	F10	ConvertToHalfAlphanumeric
DirectInput	F13	IMEOn
Composition	F2	ConvertWithoutHistory
Composition	F6	ConvertToHiragana
Conversion	F6	ConvertToHiragana
Composition	F7	ConvertToFullKatakana
Conversion	F7	ConvertToFullKatakana
Composition	F8	ConvertToHalfWidth
Conversion	F8	ConvertToHalfWidth
Composition	F9	ConvertToFullAlphanumeric
Conversion	F9	ConvertToFullAlphanumeric
DirectInput	Hankaku/Zenkaku	IMEOff
Precomposition	Hankaku/Zenkaku	IMEOff
Composition	Hankaku/Zenkaku	IMEOff
DirectInput	Henkan	InputModeHiragana
Precomposition	Henkan	InputModeHiragana
Conversion	Henkan	InputModeHiragana
Composition	Henkan	InputModeHiragana
DirectInput	Hiragana	InputModeHiragana
Composition	Hiragana	InputModeHiragana
Conversion	Hiragana	InputModeHiragana
Precomposition	Hiragana	InputModeHiragana
Composition	Home	MoveCursorToBeginning
Conversion	Home	SegmentFocusFirst
DirectInput	Katakana	InputModeHiragana
Composition	Katakana	InputModeHiragana
Conversion	Katakana	InputModeHiragana
Precomposition	Katakana	InputModeHiragana
Composition	Left	MoveCursorLeft
Conversion	Left	SegmentFocusLeft
Composition	Muhenkan	IMEOff
Conversion	Muhenkan	IMEOff
Precomposition	Muhenkan	IMEOff
Conversion	PageDown	ConvertNextPage
Conversion	PageUp	ConvertPrevPage
Composition	Right	MoveCursorRight
Conversion	Right	SegmentFocusRight
Conversion	Shift Backspace	Cancel
Composition	Shift Backspace	Backspace
Conversion	Shift Down	ConvertNextPage
Suggestion	Shift Enter	CommitFirstSuggestion
Composition	Shift ESC	Cancel
Conversion	Shift ESC	Cancel
Conversion	Shift Henkan	ConvertPrev
Composition	Shift Left	MoveCursorLeft
Conversion	Shift Left	SegmentWidthShrink
Precomposition	Shift Muhenkan	ToggleAlphanumericMode
Composition	Shift Muhenkan	ConvertToFullAlphanumeric
Conversion	Shift Muhenkan	ConvertToFullAlphanumeric
Composition	Shift Right	MoveCursorRight
Conversion	Shift Right	SegmentWidthExpand
Conversion	Shift Space	ConvertPrev
Precomposition	Shift Space	InsertAlternateSpace
Composition	Shift Space	Convert
Conversion	Shift Tab	ConvertPrev
Conversion	Shift Up	ConvertPrevPage
Precomposition	Space	InsertSpace
Conversion	Space	ConvertNext
Composition	Space	Convert
Composition	Tab	PredictAndConvert
Conversion	Tab	PredictAndConvert
Conversion	Up	ConvertPrev
Composition	VirtualEnter	Commit
Conversion	VirtualEnter	CommitOnlyFirstSegment
Composition	VirtualLeft	MoveCursorLeft
Conversion	VirtualLeft	SegmentWidthShrink
Composition	VirtualRight	MoveCursorRight
Conversion	VirtualRight	SegmentWidthExpand
Precomposition	Hiragana	InputModeHiragana
DirectInput	Hiragana	InputModeHiragana
Composition	ASCII	InsertCharacter
Composition	Kanji	IMEOff
Composition	OFF	IMEOff
Composition	ON	IMEOn
Conversion	Kanji	IMEOff
Conversion	OFF	IMEOff
Conversion	ON	IMEOn
DirectInput	Kanji	IMEOn
DirectInput	ON	IMEOn
Precomposition	ASCII	InsertCharacter
Precomposition	Kanji	IMEOff
Precomposition	OFF	IMEOff
Precomposition	ON	IMEOn

```
</details>

## コマンドを管理者で実行に変更
ショートカットで設定(タスクバーにピン止め)したものに対して
管理者として実行を設定
1. `詳細設定`をクリック
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/242808/78a66f9d-92c5-2e47-85cf-e18f83df80a3.png)
1. `管理者として実行`にチェックを入れる
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/242808/e0801e8b-f0a6-fb4c-a084-a9d3a7474052.png)

## ランチャーの設定
1. ツールバーの設定から`PowerToys`を右クリックして設定を起動
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/242808/76529e20-fb8d-e03f-589c-9401cbaf295a.png)
1. PowerRunの設定を選択して
    1. `有効化`を選択
    1. `アクティブショートカット`を `Ctrl+ Space`に変更
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/242808/de50372b-6e0a-89b9-0e79-2e0192c4cd73.png)