![]() ![]() If you want the selection to be copied as whole lines and pasted starting with a new line, use the Duplicate Entire Lines action. Note that when you duplicate a selection (even if the selection spans multiple lines), the duplicate is inserted right after the initial selection, without a line break. If necessary, you can press Ctrl+Shift+Alt and then use arrow keys to move the duplicate to the desired position. If you have duplicated a selection, the selection stays at the duplicate. The duplicated line or multi-line selection is inserted below the original line or selection the duplicated inline selection is inserted to the right of the original. Alternatively, you can press Control+Shift+A, start typing the command name in the popup, and then choose it there. Press Control+D or choose Edit | Duplicate Line or Selection from the main menu. To select a logical code block, press Control+W one or more times to select the current declaration, press Control+Alt+Shift+[. To clone an arbitrary piece of code, select it in the editor. If you want to clone a line, place the caret at this line line. JetBrains Rider helps you streamline the cloning part - with a single keystroke Control+D the cloned code is inserted right after the original. She has also written a bunch of romance novels and is aided at work by a tech-savvy elderly cat who ensures Emma fully understands all the functions of the F keys so she can quickly undo whatever the cat has just activated while walking over the keyboard.One of the ways of creating a code element similar to an existing one (for example, a new method overload or a new auto-implemented property) is cloning the existing element with copy-paste and then editing the clone. She runs a tea blog called and holds some very strong opinions about tea. When not writing about tech and finance, Emma can be found writing about films, relationships, and tea. (Her long, rambling, Land of Zooz series still exists on a 5-inch floppy disk up in her parents' loft somewhere.) She then got distracted from coding for a few decades before returning to university in her thirties, getting a Computing Science degree, and realizing her ambition of becoming a fully-fledged geek. Emma got her first computer in 1984 and started coding games in BASIC at age 10. Before becoming a freelance writer, she worked in the fintech industry for more than 15 years in a variety of roles, including software developer and technical writer. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |