everedit 格式化json_Mac Init

本文记录了在Mac上配置开发环境的过程,包括系统设置、App安装、命令行工具、开发工具、快捷键等,旨在打造高效的工作环境,涉及Chrome、VSCode、iTerm、Alfred、IntelliJ IDEA等软件的个性化配置。
摘要由CSDN通过智能技术生成

面向面试编程的日子结束,未来公司给配MBP 2019款,离职交接期,先用自己的MBA把未来的工作环境「调试正确」,这里做简单记录。

每个人都有适合自己的方案,就像vim和emac之争,没有什么意义,适合自己就好,以下全部为个人设置备份,仅供参考。

零、全局快捷键Ctrl + D:向右删除一个字母

Ctrl + A:移动到行首

Ctrl + E:移动到行尾

一、系统设置

1、触摸板设置(轻击无需点击)

defaults write com.apple.AppleMultitouchTrackpad Clicking -int 1

defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 1

defaults write NSGlobalDomain com.apple.mouse.tapBehavior -int 1

2、修改TouchBar为传统的F1-F12

defaults write -globalDomain com.apple.keyboard.fnState -int 1

3、关闭安全 & dmg校验

sudo spctl --master-disable

defaults write com.apple.LaunchServices LSQuarantine -bool false

defaults write com.apple.frameworks.diskimages skip-verify -bool true

defaults write com.apple.frameworks.diskimages skip-verify-locked -bool true

defaults write com.apple.frameworks.diskimages skip-verify-remote -bool true

4、dock优化

# dock瞬间出现/消失

defaults write com.apple.dock autohide-time-modifier -int 0; killall Dock

5、Finder优化

# 显示文件全路径

defaults write com.apple.finder _FXShowPosixPathInTitle -bool TRUE; killal

# 显示所有隐藏文件

defaults write com.apple.finder AppleShowAllFiles -bool YES

# 取消显示所有隐藏文件

defaults write com.apple.finder AppleShowAllFiles -bool NO

killall Finder

6、设置触发角

「系统设置」->「调度中心」->「触发角」

7、增强预览

brew cask install qlcolorcode qlstephen qlmarkdown quicklook-json qlimagesize qlvideo

二、AppApp路径:/Applications

Homebrew路径:/usr/local/Cellar

Cask路径:/usr/local/Caskroom

A、必装

# 开发

** Chrome 设置 & 插件

** iTerm 设置 & 主题

** IntelliJ IDEA 设置 & 插件

** VS Code 设置 & 插件

** Charles

iHosts

PyCharm

Postman - HSF & MTOP & TOP平台

Navicat - idb & 离线

ForkLift

Tower

GitHub Desktop

Dash

# 效率

Alfred * 设置 & 插件

# 系统

* QSpace

* The Unarchiver

CheatSheet

截图

Bartender

欧路词典

Instant Translate

KeyCastr

ScreenFlow

Itsycal

TinkerTool

nPlayer

sPlayer

# 办公

钉钉 *

Office *

XMind *

MWeb *

Reeder * 设置

OmniGraffle

Keynote

MindNode

B、敏感 & 不安装

# 敏感

微信

QQ

Maipo

Foxmail

有道云笔记

SS

GitHub Desktop

幕布

坚果云

Android File Transfer

百度网盘

网易MuMu

网易云音乐

# 不安装

PPDuck

Sketch

Color Code Copy

DaisyDisk

EdrawMax

Transmit

Expressions *

Medis *

Gas Mask *

Multitouch * 设置

Fantastical *

CleanMyMac *

iStat Menus *

Moom *

二、命令行工具

# xcode命令行工具

xcode-select --install

# 安装zsh

# 安装oh-my-zsh

# 安装brew

# 通过brew安装相关命令行工具

vim

autoconf

autojump

automake

gdbm

gettext

git

libtool

lua

openssl

pcre2

perl

pkg-config

python

qt

readline

sqlite

tree

curl

wget

pstree

gnu-sed

gawk

rename

xz

zsh-completions

zsh-syntax-highlighting

三、开发工具

# git设置

# Java环境

JDK

jEnv

Maven

Tomcat

# Python环境

python2

python3

pip

ipython

# 安装node环境

# 通过npm安装相关命令行工具

sudo cnpm install yddict -g

四、VSCode设置

# 安装中文插件

command + shift + p

configure language

# 高亮显示

TODO Highlight

# 根据文件和文件夹名称展示恰当的图标

TODO VSCode Icons

# 给成对的括号配上颜色,方便区分

Bracket Pair Colorizer

# 在底部bar中显示文件大小

File Size

# 自动补全文件路径

Path Intellisense

# 支持多种语言的outline提取

Code Outline

Code Runner

# 使用快捷键Ctrl+h快速打开Dash查找当前单词

Dash

# Markdown语法检查

MarkdownLint

# 帮助你管理项目,在多个项目间切换,快捷键 Option + P(首先要添加进项目列表)

Project Manager

# 帮助你查看git各种修改记录,包括修改人是谁和具体的修改时间,在多人协作的时候,这个插件非常重要。

GItLens

# CSS自动补全

IntelliSense for CSS class

# 方便在HTML中插入CSS代码

HTML CSS Support

# sass格式文件的代码补全和高亮

SASS

# Vue 开发必备的插件,提供代码补全、高亮等功能

Vetur

# 快速跳转定义

Vue peek

# 自动补全另一侧的

Auto Close Tag

# 修改一个Tag时,另一侧的Tag自动修改

Tag Auto Rename Tag

# 遇到颜色字符串,自动在旁边显示颜色,方便预览

Color Highlight

# 代码格式化,支持实时监测和保存时自动修改

ESLint

五、chrome插件

掘金

Adblock Plus

FeHelper

OneTab

Octotree

Tampermonkey

https://greasyfork.org/zh-CN

https://www.tampermonkey.net/

百度广告屏蔽

百度药丸

有道云笔记网页剪报

花瓣网页收藏工具

# 不常用

达达划词翻译

九章刷题小助手

Restlet Client

Wappalyzer

Set Character Encoding

Infinity Pro - 与掘金冲突,已关闭

Momentum - 与掘金冲突,已关闭

Insight.io for Github - 貌似下架,已关闭

关闭Spotlight快捷键

六、Idea插件

Lombok Plugin

Alibaba Java Coding Guidelines

Maven Helper

Grep Console - 日志高亮

GsonFormat

# 不常用

FindBugs

Rainbow Brackets - 括号匹配

JRebel for IntelliJ - 热部署

RestfulToolkit - 全局搜索RequestMapping

GenerateSerialVersionUID

Git Flow Integration

七、Alfred插件

# Recent Documents

# rd列出最近打开的文件

# rf列出最近访问的目录

# ra列出最近访问的应用

# rr列出当前激活应用最近打开的文件

https://github.com/mpco/AlfredWorkflow-Recent-Documents/releases

# AppLauncher

⌘ + G 激活chrome

⌘ + I 激活iTerm2

⌘ + E 激活VSCode

# Dash

dash + {content}

# github

github + {content}

# TerminalFinder

fi Finder->iTerm2

if iTerm2->Finder

# Youdao

yd + {content}

# 百度搜索

db + {search}

# 知乎

zh + {search}

# Web Search Suggest

# google

gg + {search}

# wiki

wiki + {search}

# baidu

baidu + {search}

# zhihu

zhihu + {search}

#bilibili

bl + {search}

# weibo

we + {search}

# taobao

tb + {search}

# jingdong

jd + {search}

# Timestamp

ts + {时间戳/年月日}

# http

http + {code}

# 修改>为iTerm2

Features->Terminals->Application选择Custom

粘贴以下script

on write_to_file(this_data, target_file, append_data)

try

set the target_file to the target_file as string

set the open_target_file to open for access file target_file with write permission

if append_data is false then set eof of the open_target_file to 0

write this_data to the open_target_file starting at eof

close access the open_target_file

return true

on error

try

close access file target_file

end try

return false

end try

end write_to_file

on alfred_script(q)

-- Write the command to run to a file. This is done because Applescript quoting is impossible to get right, esp. for backslashes.

set tmp_dir to path to temporary items as string from user domain

set applescript_alfred_file to tmp_dir & "alfredscript"

set alfred_file to POSIX path of applescript_alfred_file

write_to_file(q & return, applescript_alfred_file, false)

-- Create this file, which prevents iTerm2 from restoring a saved window arrangement.

do shell script "touch ~/Library/Application' Support/iTerm2/quiet'"

-- Test cases:

-- 1. iTerm2 running, has windows open. Should open a new window for Alfred command.

-- 2. iTerm2 running, no windows open. Should open a new window for Alfred command.

-- 3. iTerm2 not running, set to restores arrangement. Should not restore arrangement but open a new window for the Afred command.

-- 4. iTerm2 not running. No windows to restore. Should open a single window for the Alfred command.

-- 5. iTerm2 not running. Has windows to restore. Restores windows and then opens a new window for the Alfred command.

-- Compose a script. This is necessary because compiling in a 'tell application' command causes the app to be launched, which would happen prior to the creation of the quiet file.

set theScript to "tell application \"iTerm.app\"

if (exists current window) then

tell current window to create tab with default profile

tell current session of current window

write contents of file \"" & alfred_file & "\"

end tell

else

create window with default profile

tell current session of current window

write contents of file \"" & alfred_file & "\"

end tell

end if

activate

end tell"

-- Invoke the script.

run script theScript

-- Clean up

-- do shell script "rm -f ~/Library/Application' Support/iTerm2/quiet' /tmp/alfredscript"

end alfred_script

八、快捷键

# 符号

⌘ (command)

⌥ (option)

⇧ (shift)

⌃ (control)

⌫ (delete)

# 快捷键

Command-T:打开新标签页

command-H:隐藏最前面的应用窗口

Command-W:关闭最前面的窗口

Command–空格键:Alfred

九、Windows工具

A、开发工具

JDK(Maven、Tomcat)

Xshell

WinSCP

Navicat

GitBash

Postman

Charles

EverEdit

Sublime Text

Beyond Compare

Java Decompiler

ZooInspector

# 不常用

PyCharm

VS Code

FireFox

IPython

TeamViewer

Burp Suite

JMeter

IDA Pro & Hex-Rays

# 不再用(没有使用场景,曾爱过)

Sandboxie - 沙盒环境

HashTab

Visual Studio 2008

FilZilla

IceSword

https://msdn.itellyou.cn/

B、系统工具

Everything - 文件索引

坚果云 - 文件同步

幕布 - 思维导图Lite

XMind - 思维导图

有道云笔记 - 网页剪报

Clover - ExplorerEx

Picasa - 图片浏览

Pure Codec - 影音解码

SS - 虚拟专供网络

# 不常用

小黄条

Bulk Rename Utility - 文件重命名

PicGo - 图床

MenuMgr - 右键菜单管理

SysinternalsSuite

PCHunter - 系统优化(慎用,不可逆破坏)

天若 - ORC识别(https://github.com/tianruoyouxin/tianruoocr_last)

PicPick - 截长屏

Snipaste - 离线截图

大白菜PE

islide

# 不再用(没有使用场景,曾爱过)

UltraISO

CCleaner

MacType - Windows字体优化

foobar2000 - 离线音乐播放

COMODO Firewall - 防火墙

IPMsg

世界之窗

魔方

Notepad++

Desktops - 微软虚拟桌面

QQ影音

风雷影音

ACDSee

ASCII Animator - Gif转为ASCII

格式工厂

参考

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值