{"_id":"54d03229c795960d009f420b","category":{"_id":"54cfb9a65ff7e617002bbd7f","__v":16,"version":"54cf411f9d09bb0d00a17a1f","pages":["54d031f2f530ca0d00053955","54d03212f530ca0d00053959","54d03229c795960d009f420b","54d03243c795960d009f420d","54d03268c795960d009f420f","54d032a594f7980d0081b838","54d032c0c795960d009f4211","54d032e394f7980d0081b83c","553a7e020074c80d00621bee","55707819910c090d00c43412","557b137eb5052c1700543db2","557eee21eb75d80d00af3f9f","55896d363494de2f00a8d58d","55ae7e618576b92300291dfc","563a83e40ed633230037885b","56538c47f77ca023004e5338"],"project":"54cf411f9d09bb0d00a17a1c","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-02-02T17:53:42.501Z","from_sync":false,"order":1,"slug":"features","title":"Features"},"parentDoc":null,"user":"54cfa8c8a8a4fd0d00b7fd1c","project":"54cf411f9d09bb0d00a17a1c","version":{"_id":"54cf411f9d09bb0d00a17a1f","project":"54cf411f9d09bb0d00a17a1c","__v":14,"createdAt":"2015-02-02T09:19:27.656Z","releaseDate":"2015-02-02T09:19:27.656Z","categories":["54cf41209d09bb0d00a17a20","54cfb99bbba1a023008741af","54cfb9a65ff7e617002bbd7f","54cfba03bba1a023008741b6","54cfba0ebba1a023008741b8","54cfba19bba1a023008741b9","54cfba29bba1a023008741bb","54cfba345ff7e617002bbd87","54cfba3ebba1a023008741bc","54cfba473995cf0d0006f6f0","54e371b18ef7552300409bf2","54e37aa5e887c50d005ef629","555a4e9b147f91190092d137","56b0e91802f4bc0d006ce254"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"__v":10,"updates":["5506ca986ad8831900e20912","570682735aa9280e00b302b3"],"next":{"pages":[],"description":""},"createdAt":"2015-02-03T02:27:53.530Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":7,"body":"Multiple cursors is one of the most useful features available in the Cloud9 editor. You can use multiple cursors to perform tasks like rename several variables or members at once, break up lists separated by commas, or insert the same text in multiple locations.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/eTvjalnGSd5wwMMM7X3g_multiplecursors.gif\",\n        \"multiplecursors.gif\",\n        \"498\",\n        \"310\",\n        \"#3e2e8e\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nMultiple selections can be copied and pasted, and you can insert or remove entire lines in several locations.\n\nThere are several ways to get access to multiple cursors:\n\n  * Hold down key combination ( 'Ctrl + Alt' default on Windows) and clicking in multiple locations\n  * Hold the Alt key, click the mouse, and drag the cursor up or down in the editor\n  * Via keyboard shortcuts, you can create a new cursor in any direction (see your system's shortcuts from menu option below)\n  * Through the menu bar at **Edit > Selection > Multiple Selections**\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/7dy8N2iQ5STTPnEa8dwP_Screen%20Shot%202015-04-24%20at%209.13.58%20AM.png\",\n        \"Screen Shot 2015-04-24 at 9.13.58 AM.png\",\n        \"838\",\n        \"518\",\n        \"#ca3451\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nOne of the best capabilities is the ability to instantly select the next instance of your currently highlighted section. This is especially useful for refactoring several parts of the code at once. To do this, press `Ctrl-Alt`, followed by the right (or left) arrow key to navigate around in the code.\n\n\n[block:callout]\n{\n  \"type\": \"info\",\n  \"body\": \"By default `Ctrl-click` is used for jump to definition and `Ctrl-Alt-click` for multiple selections. If you prefer to use `Ctrl-click` for adding new selections disable `User Settings>Language>input>Use cmd-click for jump to definition` from cloud9 preferences\",\n  \"title\": \"\"\n}\n[/block]\n\n[block:image]\n{\n  \"images\": [\n    {}\n  ]\n}\n[/block]","excerpt":"","slug":"multiple-cursors","type":"basic","title":"Multiple Cursors"}
Multiple cursors is one of the most useful features available in the Cloud9 editor. You can use multiple cursors to perform tasks like rename several variables or members at once, break up lists separated by commas, or insert the same text in multiple locations. [block:image] { "images": [ { "image": [ "https://files.readme.io/eTvjalnGSd5wwMMM7X3g_multiplecursors.gif", "multiplecursors.gif", "498", "310", "#3e2e8e", "" ] } ] } [/block] Multiple selections can be copied and pasted, and you can insert or remove entire lines in several locations. There are several ways to get access to multiple cursors: * Hold down key combination ( 'Ctrl + Alt' default on Windows) and clicking in multiple locations * Hold the Alt key, click the mouse, and drag the cursor up or down in the editor * Via keyboard shortcuts, you can create a new cursor in any direction (see your system's shortcuts from menu option below) * Through the menu bar at **Edit > Selection > Multiple Selections** [block:image] { "images": [ { "image": [ "https://files.readme.io/7dy8N2iQ5STTPnEa8dwP_Screen%20Shot%202015-04-24%20at%209.13.58%20AM.png", "Screen Shot 2015-04-24 at 9.13.58 AM.png", "838", "518", "#ca3451", "" ] } ] } [/block] One of the best capabilities is the ability to instantly select the next instance of your currently highlighted section. This is especially useful for refactoring several parts of the code at once. To do this, press `Ctrl-Alt`, followed by the right (or left) arrow key to navigate around in the code. [block:callout] { "type": "info", "body": "By default `Ctrl-click` is used for jump to definition and `Ctrl-Alt-click` for multiple selections. If you prefer to use `Ctrl-click` for adding new selections disable `User Settings>Language>input>Use cmd-click for jump to definition` from cloud9 preferences", "title": "" } [/block] [block:image] { "images": [ {} ] } [/block]