Mac operating

Screen capture

  • command+shift+3Capture the entire screen
  • command+shift+4Part of the intercept
  • command+shift+AScreenshot of enterprise wechat
  • command+shift+XXnip Screenshot (👍)

Forced out of

  • command+option+escOpen the program exit window
  • command+option+shfit+escDirectly out of

1.Iterm2

A terminal window

  • command+.Enter terminal to open the terminal
  • command+NOpen a new terminal window
  • command+TA terminal opens multiple tabs,
  • command+DNew Windows stand up
  • command+shift+DHorizontal new window
  • command+WClose current window

1. View files and directories

  • Enter folder:cd
  • Return to parent file:cd .. /
  • Return to root directory:cd ~
  • To view the current directory structure:ls

2. Create and edit files

  • Create folder:The mkdir filename
  • Create file:vim config-overrides.js
  • Edit mode insert:i
  • Exit and return to normal mode:Esc(After Esc exits, the content can be deleted)
  • Delete:xTo delete a character backwards,XDeletes a character for the previous one

3. Exit and save the Settings

  • Exit save::(Enter Q, etc., to exit the file)
  • Exit::q
  • Save exit:Wq or: x
  • Forcible exit is applicable to exit without saving the file after modification::q!

2.Visual Studio Code

The editor

  • Select the current row:Control + L
  • Copy and paste the current line:Control + D
  • Display the global command panel:Command + Shift + P
  • Search files:Command + P
  • Newly opened window:Command + Shift + N
  • Insert a new line under the current line:Command + Enter
  • Insert a new line on the current line:Command + Shift + Enter
  • Open shortcut key Settings:Command + K + S
  • Global search:Command + Shift + F
  • Preview the Markdown file:Command + Shift + V
  • Open the integration terminal:Control + `
  • Create a new terminal:Control + Shift + `
  • The sidebar shows hidden:Command + B
  • Jump to a row:Control + G
  • Open Git visual management:Control + Shift + G

3.Chrome

Chrome Google browser 👍

  • command+p: File search
  • command+l: Jumps to the URL address bar
  • command+control+f: Global or cancel global display
  • command+shift+f: Navigation bar Show or hide

1. All Panels (CMD = command)

  • cmd-LThe cursor jumps directly to the address bar
  • control-TabGo to the next TAB
  • control-shift-tabGo to the previous TAB
  • CMD + write leftTop/bottom of current page
  • cmd-NOpen a new window
  • cmd-WClose the current page. Close only one page
  • cmd-Dcollection
  • cmd+shift+NCreate a new traceless mode window
  • cmd+TCreate a new TAB
  • cmd+opt+LOpen the download content window (only one)
  • cmd+shift+TOpen download content window (can open more than one)
  • cmd+shift+BHide/show bookmarks bar
  • cmd+opt+BBookmark Management page
  • cmd+shift+delete/xClearing Historical Data
  • cmd+ + -Scaling the current page
  • cmd+RRefresh the page
  • cmd+shift+RStrong brush page
  • cmd+opt+FFast Bing search bar
  • cmd+OPop-up Finder (browser page valid)
  • Cmd+YThe history page is displayed

2. DevTools operation

  • fn + f12cmd+opt+IBring up theDevTools
  • cmd+shift+CBring up the Review Elements window
  • cmd+opt+JOpen developer tools and navigate to the console
  • cmd+opt+COpen theDevTools(Cannot be closed)
  • Elements Review Elements
    • CMD +Z reverses the changes
    • Cmd + Y, Cmd + Shift + Z redo
    • ↑↓ Navigation up or down
    • ← → Collapse/expand nodes
    • Opt + ← → Collapse/expand all child nodes
    • Double-click Enter to modify the property
    • H Hidden element
    • Fn +F2 edit As HTML
    • Right-click an element to do this:
    • State of Force State change element (: active, : hover, : focus, : visited);
    • Scroll into view to locate the element on the page
    • Setting breakpoints on elements (changing child elements, changing attributes, and deleting nodes)

3. Style Sidebar

  • CMD + click properties to navigate to the style property definition
  • CMD + click Value to navigate to the property value definition
  • Shift + click on the color block to cycle the color value (RGBA,#, HSL, etc.)
  • Tab,Shift+Tab to edit up/next property
  • ↑↓ Increases or decreases a value
  • Shift +↑↓ Increases/decreases the value by 10 each time
  • Opt +↑↓ Increases/decreases the value by 0.1 each time
  • + Add new style picker

4. The Sources panel

  • F8,Cmd+\Pause/resume the script
  • F10,Cmd+' Step over next function call
  • F11,Cmd+; Step into next function call
  • Shift+F11,Cmd+Shift+; Step out of current function
  • Opt+. Select next call frame
  • Opt+, Select previous call frame
  • Click line Number or CMD +B to create a breakpoint
  • line numberRight-click to change the breakpoint status
  • Cmd+/annotation
  • Cmd+Opt+SSave all changes
  • Cmd+O/PThrough file name search,:number jumps to the specified line
  • Opt+WClose current window
  • Cmd+DSelect the next occurrence location
  • Cmd+UUndo last action

5. Console

  • Cmd+K,Opt+L Clear the console