iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
👨‍💻

New MacBook (Apple M4) Setup Notes

に公開

Initial setup notes for a MacBook (Apple M4) for Unity game development work.

Items to Install

Chrome

https://www.google.com/intl/ja_jp/chrome/

Google Japanese Input

https://www.google.co.jp/ime/

Slack

https://slack.com/

git

Install Xcode Command Line Tools

% xcode-select --install

Homebrew

Refer to the official site for the installation command

% /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

https://brew.sh/

Adding to Path

% echo >> /Users/unsoluble_sugar/.zprofile
% echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/unsoluble_sugar/.zprofile
% eval "$(/opt/homebrew/bin/brew shellenv)"

References

https://zenn.dev/tet0h/articles/a92651d52bd82460aefb
https://zenn.dev/shsw0228/articles/f89f2604bb53b3

node

% brew install node
% node -v
% npm -v

VSCode

I use configurations like splitting the window into two for terminal and file displays.
https://code.visualstudio.com/

https://zenn.dev/unsoluble_sugar/articles/a14fa26a99a914

The default shell for macOS is zsh, so no change is needed, but refer to the following article when changing the default terminal.
https://zenn.dev/unsoluble_sugar/articles/362a17a7f57020

Install Extensions

Prettier

https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode

Code Spell Checker

https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker

indent-rainbow

https://marketplace.visualstudio.com/items?itemName=oderwat.indent-rainbow

json

https://marketplace.visualstudio.com/items?itemName=ZainChen.json

GitHub Copilot

https://marketplace.visualstudio.com/items?itemName=GitHub.copilot

Sourcetree

I also use git commands normally, but I use this because it's easy to visualize.
https://www.sourcetreeapp.com/

Unity Hub

If you have a new Unity account, assign a Unity Pro license seat.

https://unity.com/download

Changing the editor used when opening files from Unity

Change the editor used to open files via "Edit Script" to VSCode.
Open the Preferences window from [Unity] > [Settings...] and select the editor to use in "External Script Editor" under "External Tools".

By default, it is set to "Visual Studio for Mac", so change it to VSCode.

Solution for when the dotnet: command not found .NET Core error occurs when opening C# files in VSCode:
https://zenn.dev/unsoluble_sugar/articles/982e38df5ffbd9

Finder Settings

Display Path Bar and others

Enable the following from the "View" menu:

  • Path Bar
  • Status Bar
  • Preview

https://support.apple.com/guide/mac-help/mchlp1774/mac

Adjust the display settings to suit your preference.

Show Filename Extensions

% defaults write NSGlobalDomain AppleShowAllExtensions -bool true

Show Hidden Files

Toggle show/hide with "command + shift + ."

Hide Icons and Folders on Desktop

In System Settings, go to "Desktop & Dock" > "Desktop & Stage Manager" > "Show Items" and uncheck "On Desktop".

Fix the Desktop Order in Mission Control

System Settings > Desktop & Dock
Uncheck "Automatically rearrange Spaces based on most recent use".
https://qiita.com/ayies128/items/f036ba7d89444b3b71f0

Related Articles

GitHub integration for Slack
https://zenn.dev/easy_easy/articles/298c9728e01819db9f50

Python Environment Setup
https://zenn.dev/easy_easy/articles/283ebf698c307c

Discussion