- command + option + ESC (ctrl+alt+del)
- command + DEL (move to trash)
- command + tab (cycle apps)
- command + M (minimize current app)
- command + W (close window)
- command + shift + 4 or 3 (take screenshot)
- command + space (spotlight)
- command + up/down (go to parent/child dir in finder)
- command + C / command + option + V (cut and paste file)
- command + ~ (switch between windows of same application)
- double click (move the relative position of multiple full screen application)
- double finger swipe left/right (switch between tabs of browser)
- drag finder file to terminal (copy its path to terminal)
- command + shift + G (in finder go to folder)
- right click + option (copy path)
- right-click -> service -> new terminal at folder (open terminal at finder)
- command + shift + T (in textedit remove formatting)
- view -> show path bar
- view -> show status bar
- trackpad -> tap to click
- track -> secondary click -> click in bottom right corner
- spread thumb and three finger (show desktop)
- 4 fingers (mission control)
- close lid (lock screen)
2. intellij
- set keymap mac OS X 10.5+ //for better shortcut key
- command + two fingers //zoom font size
- command + F9 (save and build)
- command + E //recent files, also show maven project
- shift + shift //search everything
- command + G //search next
- command + shift + F //search text in all files
- command + B //view definition
- alt + F7 //find usage
- command + [ //navigate back
- command + shift + backspace //last edit location
- fn + cursor left //goto beginning of line
- fn + cursor right
- command + option + L //auto format
- shift + command + 8 . //toggle column mode
- shift + command + F8 //show all breakpoints
- option + F8 //evaluate expression
- command + F7 //smart step into
- command + space ()
- don't forget intellij main menu
- click .pom file to import maven project, search project recursively
- eclipse workspace is intellij project, eclipse project is intellij module
- select autoscrolling to sources in project setting
- analyze -> analyze data flow to here
- debug: can use package.json, "node $NODE_DEBUG_OPTION index.js"
- debug: can use run configuration 'javascript file' - 'index.js', $NODE_DEBUG_OPTION will be added when clicking debug button
- the name 'step_definitions' has to be used for cucumber step definition folder so that Intellij can find it from feature file
- https://www.youtube.com/watch?v=pt3uB0sd5kY
3. vscode
- command + P //search file by name
- ctrl+shift+f //search all
- f5 //debug
- ctrl+f5 //run
- ctrl+p //open recent files
- ctrl + - //navigate back
- ctrl + shift + - //navigate forth
4. brew
- brew uninstall --force nvm
- brew list [software] //list all(software) packages installed
reference
1. create intellij run configuration from package.json 'script'
2. intellij can not find step definition from feature file
3. share intellij configuration between projects