Step. | 說明 |
---|---|
1. ⌘ + C, V | 新增游標 |
2. ⌘ + N | 選取下一個相同的字串 |
3. ⌘ + C, V | 複製貼上 |
4. ⌘ + A, ⇧ + ⌥ + I | 全選接著把選取區塊在每一行後面新增游標 |
5. ⌘ + ⇧ + ← | 每行都選起來 |
6. ⌘ + C, 到另一分頁 | 複製 |
7. ⌘ + A, ⇧ + ⌥ + I | 全選接著把選取區塊在每一行後面新增游標 |
8. ⌘ + ← | 游標到最前面 |
Mac 快捷鍵 | 說明 |
---|---|
⌥ + 左鍵點一下 | 新增游標 |
⌘ + D | 選取下一個相同的字串 |
⌘ + K , ⌘ + D | 跳過上一個相同的字串 [✏️按住⌘接著按K、D] |
⌘ + U | 取消上一個選取 |
⇧ + ⌘ + L 或 ⌘ + F2 | 選取所有相同的字串 [✏️F2要先按住fn] |
⇧ + ⌥ + I | 把選取區塊在每一行後面新增游標 [✏️若你有安裝angular2-switcher Extensions會衝突] |
⇧ + ⌥ + 滑鼠選取移動 | 選取區塊新增游標 [✏️不含沒有字元的行] |
⇧ + ⌥ + ⌘ + ↓ | 游標選取往上 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 範例 | |
export declare namespace Raffle { | |
interface UpdateData { | |
title: string; | |
latestUpdateAt: Date; | |
} | |
interface AddData extends UpdateData { | |
createdAt: Date; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 允許安裝第三方 | |
sudo -s sudo spctl --master-disable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ====把n維陣列攤成n-1維==== | |
Array.prototype.concatAll = function (){ | |
var result = []; | |
this.forEach((array) => { | |
result.push.apply(result, array); | |
}); | |
return result; | |
} | |
Array.prototype.concatAll = function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 在沒有設定環境變數下 dotnet | |
# 會得到 `command not found: dotnet` | |
ln -s /usr/local/share/dotnet/dotnet /usr/local/bin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function myFunction() { | |
// 先get中央氣象局開放資料平臺資料 | |
var opendataUrl = "https://opendata.cwb.gov.tw/api/v1/rest/datastore/F-C0032-001?locationName=臺北市"; | |
var opendataOptions = { | |
"method" : "GET", | |
"headers": { | |
"Authorization": "授權碼請至https://opendata.cwb.gov.tw/devManual/insrtuction取得", | |
"Content-Type": "application/json;charset=utf-8" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://cdn.jsdelivr.net/npm/lodash@4.17.11/lodash.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 這超常用的縮寫 | |
git config --global alias.co checkout | |
git config --global alias.br branch | |
git config --global alias.st status | |
git config --global alias.ci commit | |
# 看log變得很順眼 `git lg` | |
git config --global alias.lg "log --color --graph --all --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
# `git unstage` 相當於 `git reset HEAD` |
NewerOlder