[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-573831-105":3,"detail-sidebar-cat-1-en-105":80,"doc-detail-573831-en":126},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","keyboard-shortcuts-for-macos-general-macos-keyboard-shortcuts","Keyboard shortcuts for macOS - General - macOS Keyboard Shortcuts","","macOS keyboard shortcuts reference covering command palette, quick open, file navigation, editing, comments, folding, multi-cursor and selection, and rich language editing features. Includes cut/copy/paste line operations, indentation controls, jump to matching brackets, scrolling by line or page, word wrap toggling, and block comment insertion. Also details search and replace actions, cursor placement shortcuts, symbol navigation, editor and file management commands, display and zoom controls, terminal access, and debugging shortcuts.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/template/","Template",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/template/general/","General",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/template/keyboard-shortcuts-for-macos-general-macos-keyboard-shortcuts/573831/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/keyboard-shortcuts-for-macos-general-macos-keyboard-shortcuts/573831.png","ImageObject",442,249,{"name":42,"@type":43},"Mabel","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-10-16","2026-10-14",true,{"@type":52,"interactionType":53,"userInteractionCount":30},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"How do I open the Command Palette on macOS using this shortcut list?","Question",{"text":62,"@type":63},"Use ⇧⌘P to show the Command Palette.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"What shortcuts are available for basic editing like cut, copy, and delete?",{"text":67,"@type":63},"Use ⌘X to cut a line (empty selection) and ⌘C to copy. Press ⇧⌘K to delete a line.",{"name":69,"@type":60,"acceptedAnswer":70},"How do I find and replace text, and navigate between matches?",{"text":71,"@type":63},"Use ⌘F to find and ⌥⌘F to replace. Navigate with ⌘G for next and ⇧⌘G for previous; use ⌥Enter to select all occurrences of the current find match.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},573831,1792086190,{"code":4,"msg":81,"data":82},"success",[83,88,93,98,103,108,113,118,123],{"id":84,"doc_module":22,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},11,"Presentations",90,"presentations",{"id":89,"doc_module":22,"doc_module_name":25,"category_name":90,"show_sort_weight":91,"slug":92},12,"Resumes",80,"resumes",{"id":94,"doc_module":22,"doc_module_name":25,"category_name":95,"show_sort_weight":96,"slug":97},14,"Invoices",70,"invoices",{"id":99,"doc_module":22,"doc_module_name":25,"category_name":100,"show_sort_weight":101,"slug":102},15,"Posters",60,"posters",{"id":104,"doc_module":22,"doc_module_name":25,"category_name":105,"show_sort_weight":106,"slug":107},16,"Social Media",50,"social-media",{"id":109,"doc_module":22,"doc_module_name":25,"category_name":110,"show_sort_weight":111,"slug":112},17,"Forms",40,"forms",{"id":114,"doc_module":22,"doc_module_name":25,"category_name":115,"show_sort_weight":116,"slug":117},18,"Letters",30,"letters",{"id":119,"doc_module":22,"doc_module_name":25,"category_name":120,"show_sort_weight":121,"slug":122},21,"Paper Templates",5,"papers-templates",{"id":124,"doc_module":22,"doc_module_name":25,"category_name":29,"show_sort_weight":4,"slug":125},158,"general-158",{"code":4,"msg":81,"data":127},{"doc_id":78,"user_id":128,"nickname":42,"user_avatar":129,"doc_module":22,"category_id":124,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":130,"file_id":131,"file_url":132,"file_type":133,"file_size":134,"view_count":30,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":22,"language":135,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":136,"faqs":137,"seo_title":138,"seo_description":12,"update_tm":139,"read_time":4},7971474920318,"https://ap-avatar.wpscdn.com/avatar/74000ee537e6b0ca360?x-image-process=image/resize,m_fixed,w_180,h_180&k=1788430171632181674","| |  |\n| --- | --- |\n| Keyboard shortcuts for macOS\u003Cbr>General |  |\n|  |  |\n| ⇧⌘P, F1 | Show Command Palette |\n| ⌘P | Quick Open, Go to File… |\n| ⇧⌘N | New window/instance |\n| ⌘W | Close window/instance |\n| ⌘, | User Settings |\n| ⌘K ⌘S\u003Cbr>Basic editing | Keyboard Shortcuts |\n|  |  |\n| ⌘X | Cut line (empty selection) |\n| ⌘C | Copy line (empty selection) |\n| ⌥↓ / ⌥↑ | Move line down/up |\n| ⇧⌥↓ / ⇧⌥↑ | Copy line down/up |\n| ⇧⌘K | Delete line |\n| ⌘Enter / ⇧⌘Enter | Insert line below/above |\n| ⇧⌘\\ | Jump to matching bracket |\n| ⌘] / ⌘[ | Indent/outdent line |\n| Home / End | Go to beginning/end of line |\n| ⌘↑ / ⌘↓ | Go to beginning/end of file |\n| ⌃PgUp / ⌃PgDn | Scroll line up/down |\n| ⌘PgUp /⌘PgDn | Scroll page up/down |\n| ⌥⌘[ / ⌥⌘] | Fold/unfold region |\n| ⌘K ⌘[ / ⌘K ⌘] | Fold/unfold all subregions |\n| ⌘K ⌘0 / ⌘K ⌘J | Fold/unfold all regions |\n| ⌘K ⌘C | Add line comment |\n| ⌘K ⌘U | Remove line comment |\n| ⌘/ | Toggle line comment |\n| ⇧⌥A | Toggle block comment |\n| ⌥Z Toggle word wrap\u003Cbr>Multi-cursor and selection |  |\n|  |  |\n| ⌥ + click | Insert cursor |\n| ⌥⌘↑ | Insert cursor above |\n| ⌥⌘↓ | Insert cursor below |\n| ⌘U | Undo last cursor operation |\n| ⇧⌥I | Insert cursor at end of each line selected |\n| ⌘L | Select current line |\n| ⇧⌘L | Select all occurrences of current selection |\n| ⌘F2 | Select all occurrences of current word |\n| ⌃⇧⌘→ / ← | Expand / shrink selection |\n| ⇧⌥ + drag mouse | Column (box) selection |\n| ⇧⌥⌘↑ / ↓ | Column (box) selection up/down |\n| ⇧⌥⌘← / → | Column (box) selection left/right |\n| ⇧⌥⌘PgUp | Column (box) selection page up |\n| ⇧⌥⌘PgDn | Column (box) selection page down |\n\nSearch and replace  \n\n|  |  |\n| --- | --- |\n| ⌘F | Find |\n| ⌥⌘F | Replace |\n| ⌘G / ⇧⌘G | Find next/previous |\n| ⌥Enter | Select all occurrences of Find match |\n| ⌘D | Add selection to next Find match |\n| ⌘K ⌘D Move last selection to next Find match\u003Cbr>Rich languages editing |  |\n|  |  |\n| ⌃Space, ⌘I | Trigger suggestion |\n| ⇧⌘Space | Trigger parameter hints |\n| ⇧⌥F | Format document |\n| ⌘K ⌘F | Format selection |\n| F12 | Go to Definition |\n| ⌥F12 | Peek Definition |\n| ⌘K F12 | Open Definition to the side |\n| ⌘ . | Quick Fix |\n| ⇧F12 | Show References |\n| F2 | Rename Symbol |\n| ⌘K ⌘X | Trim trailing whitespace |\n| ⌘K M\u003Cbr>Navigation | Change file language |\n|  |  |\n| ⌘T | Show all Symbols |\n| ⌃G | Go to Line... |\n| ⌘P | Go to File... |\n| ⇧⌘O | Go to Symbol... |\n| ⇧⌘M | Show Problems panel |\n| F8 / ⇧F8 | Go to next/previous error or warning |\n| ⌃⇧Tab | Navigate editor group history |\n| ⌃ - / ⌃⇧ - | Go back/forward |\n| ⌃⇧M | Toggle Tab moves focus |\n| Editor management |  |\n|  |  |\n| ⌘W | Close editor |\n| ⌘K F | Close folder |\n| ⌘\\ | Split editor |\n| ⌘1 / ⌘2 / ⌘3 | Focus into 1st, 2nd, 3rd editor group |\n| ⌘K ⌘← / ⌘K ⌘→ | Focus into previous/next editor group |\n| ⌘K ⇧⌘← / ⌘K ⇧⌘→ Move editor left/right |  |\n| ⌘K ← / ⌘K → Move active editor group |  |\n| File management |  |\n|  |  |\n| ⌘N | New File |\n| ⌘O | Open File... |\n| ⌘S | Save |\n| ⇧⌘S | Save As  |\n| ⌥⌘S | Save All |\n| ⌘W | Close |\n| ⌘K ⌘W | Close All |\n\n⇧⌘T  \nReopen closed editor  \n\n| ⌘K Enter |  | Keep preview mode editor open |\n| --- | --- | --- |\n| ⌃Tab / ⌃⇧Tab |  | Open next / previous |\n| ⌘K P |  | Copy path of active file |\n| ⌘K R |  | Reveal active file in Finder |\n| ⌘K O |  | Show active file in new window/instance |\n| Display |  |  |\n|  |  |  |\n| ⌃⌘F |  | Toggle full screen |\n| ⌥⌘0 |  | Toggle editor layout (horizontal/vertical) |\n| ⌘= / ⇧⌘ - |  | Zoom in/out |\n| ⌘B |  | Toggle Sidebar visibility |\n| ⇧⌘E |  | Show Explorer / Toggle focus |\n| ⇧⌘F |  | Show Search |\n| ⌃⇧G |  | Show Source Control |\n| ⇧⌘D |  | Show Debug |\n| ⇧⌘X |  | Show Extensions |\n| ⇧⌘H |  | Replace in files |\n| ⇧⌘J |  | Toggle Search details |\n| ⇧⌘U |  | Show Output panel |\n| ⇧⌘V |  | Open Markdown preview |\n| ⌘K V |  | Open Markdown preview to the side |\n| ⌘K Z |  | Zen Mode (Esc Esc to exit) |\n| Debug |  |  |\n|  |  |  |\n| F9 | \u003Cbr>Toggle breakpoint |  |\n| F5 | Start/Continue |  |\n| F11 / ⇧F11 | \u003Cbr>Step ","cbCaikhuknEgxIca","https://ap.wps.com/l/cbCaikhuknEgxIca","pdf",207283,"English","# Keyboard shortcuts for macOS - General\n## Basic editing\n## Multi-cursor and selection\n## Search and replace\n## Rich languages editing\n## Navigation\n## Editor management\n## File management\n## Display\n## Debug\n## Integrated terminal","[{\"question\":\"How do I open the Command Palette on macOS using this shortcut list?\",\"answer\":\"Use ⇧⌘P to show the Command Palette.\"},{\"question\":\"What shortcuts are available for basic editing like cut, copy, and delete?\",\"answer\":\"Use ⌘X to cut a line (empty selection) and ⌘C to copy. Press ⇧⌘K to delete a line.\"},{\"question\":\"How do I find and replace text, and navigate between matches?\",\"answer\":\"Use ⌘F to find and ⌥⌘F to replace. Navigate with ⌘G for next and ⇧⌘G for previous; use ⌥Enter to select all occurrences of the current find match.\"}]","Keyboard shortcuts for macOS - General - macOS Keyboard Shortcuts | PDF",1791948072]