<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sehr</title>
    <description>The latest articles on DEV Community by Sehr (@sehrishnaveed).</description>
    <link>https://dev.to/sehrishnaveed</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1254356%2F1e690f40-bf04-4f69-9df3-d1802ae1203d.jpeg</url>
      <title>DEV Community: Sehr</title>
      <link>https://dev.to/sehrishnaveed</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sehrishnaveed"/>
    <language>en</language>
    <item>
      <title>Must Know WebStorm Keyboard Shortcuts (Tips or Tricks) to Boost Productivity</title>
      <dc:creator>Sehr</dc:creator>
      <pubDate>Thu, 11 Jan 2024 13:30:37 +0000</pubDate>
      <link>https://dev.to/sehrishnaveed/must-know-webstorm-keyboard-shortcuts-tips-or-tricks-to-boost-productivity-3kl8</link>
      <guid>https://dev.to/sehrishnaveed/must-know-webstorm-keyboard-shortcuts-tips-or-tricks-to-boost-productivity-3kl8</guid>
      <description>&lt;p&gt;One of the giant advantages of &lt;strong&gt;WebStorm&lt;/strong&gt; is that it provides numerous keyboard shortcuts. Most of the developers arent even aware of these life savers. In this article, I am going to list shortcuts for both beginners and experienced developers.&lt;/p&gt;

&lt;p&gt;In the article, I am using the &lt;a href="https://github.com/facebook/react" rel="noopener noreferrer"&gt;ReactJS project&lt;/a&gt; by Facebook in the screenshots.&lt;/p&gt;

&lt;p&gt;I wrote &lt;strong&gt;macOS&lt;/strong&gt; commands in the description. Please see screenshots to check out the respective &lt;strong&gt;Windows&lt;/strong&gt; platform command.&lt;br&gt;&lt;br&gt;
Additionally, I am using &lt;a href="https://www.jetbrains.com/idea/guide/tutorials/presenting/presentation-assistant/" rel="noopener noreferrer"&gt;Presentation Assistant Plugin&lt;/a&gt; to show the shortcuts being used in screenshots.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;1. Print console.log Faster&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;console.log is a frequently used statement for debugging application code. To write the command faster, there are different ways.&lt;/p&gt;

&lt;p&gt;1- Type log and press &lt;strong&gt;tab&lt;/strong&gt; key or &lt;strong&gt;tab + /&lt;/strong&gt; key  &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;First type text to print, then type &lt;strong&gt;.log&lt;/strong&gt; and press &lt;strong&gt;tab&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Example 1 - Print text using log&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Type log + press &lt;strong&gt;tab&lt;/strong&gt; =&amp;gt; console.log(&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example 2 - Print text using .log&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Type 'Function called'.log + press &lt;strong&gt;tab&lt;/strong&gt; =&amp;gt; console.log('Function called')&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example 3 - Print text + variable using .log&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
const language = 'javascript';&lt;br&gt;&lt;br&gt;
Type 'Function called', language.log + press &lt;strong&gt;tab&lt;/strong&gt; =&amp;gt; console.log('Function called', language)&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;2. Comment Out Code&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Multi-line Comment - To comment out block of code, press &lt;strong&gt;(cmd + shift + /)&lt;/strong&gt; and press the shortcut again to un-comment&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-webstorm-block-comment-1024x634.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-webstorm-block-comment-1024x634.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To comment out a single line, select the code and press &lt;strong&gt;(cmd + /)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-webstorm-line-comment-1024x634.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-webstorm-line-comment-1024x634.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;3. Search File or Folder&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;To search a file in the project, double press &lt;strong&gt;shift&lt;/strong&gt; and a popover will appear. Additionally, there are tabs in pop-over to refine search criteria 👏&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding-search-file-everywhere-1024x806.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding-search-file-everywhere-1024x806.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;4. Search Text Everywhere&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;To search any function, variable or text in the project, press &lt;strong&gt;cmd + shift + F, and&lt;/strong&gt; a search popup will appear. You can type the search term in the pop-up and can see results in the pop-up window. Additionally, there are tabs in the pop-up to refine search criteria 👏&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-find-text-everywhere-1024x813.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-find-text-everywhere-1024x813.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;5. Last Edited Location&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;This is an awesome feature so when we are working in multiple files, we often want to navigate back to the last location. Just press &lt;strong&gt;cmd + [&lt;/strong&gt; to go back to the previous edited location and press &lt;strong&gt;cmd +]&lt;/strong&gt; to move forward.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-navigate-back-1024x813.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-navigate-back-1024x813.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-navigate-forward-1024x813.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-navigate-forward-1024x813.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;6. Recently Modified Files&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;If you need to see recently changed files, press &lt;strong&gt;cmd + E&lt;/strong&gt; and you will see the changed files list in the pop-up window&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-recent-files-1024x669.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-recent-files-1024x669.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;7. Jump to Line Number&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;This feature is useful when something crashes and there is a line number in the exception. To directly jump to the line number in the file, press &lt;strong&gt;cmd + L&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-jump-to-line-1024x694.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-jump-to-line-1024x694.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;8. Multi-Cursor Editing&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;If you want to edit on multiple places at the same time, press and hold &lt;strong&gt;Option&lt;/strong&gt; key and &lt;strong&gt;click cursor&lt;/strong&gt; on the places you need to edit. The cursor will start blinking on every place where you click. Make changes and press enter and we are done.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-multi-cursor-editing-1024x618.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-multi-cursor-editing-1024x618.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;9. Rename a Function or Variable&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;To rename a function press &lt;strong&gt;shift + F6&lt;/strong&gt; and type new name. This will change the function or variable name in all the places.&lt;/p&gt;

&lt;p&gt;In case the function is used across multiple files, IDE will show a list of changes and a change-list window on hitting enter.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding-rename-1024x694.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding-rename-1024x694.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;10. Select Opened File in the Project Window&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;In large code bases, we need to do a lot of scrolling to view files. To view an opened file in the project view,&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Press &lt;strong&gt;Option + F1&lt;/strong&gt;. IDE will scroll to the selected file and IDE will scroll to the opened file in the sidebar.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Using the mouse, click on the highlighted icon in the screenshot and IDE will scroll to the opened file in the sidebar.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-select-opened-file-1024x694.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-select-opened-file-1024x694.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;11. Fold Code&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;To fold a single function, place the cursor at the start of the function and press &lt;strong&gt;cmd - (cmd + minus sign)&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-fold-single-function-1024x671.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-fold-single-function-1024x671.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To fold all functions, press &lt;strong&gt;cmd + A&lt;/strong&gt; to select file content and then press &lt;strong&gt;cmd shift -&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-fold-all-functions-1024x642.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-fold-all-functions-1024x642.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;12. Expand Code&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;To Expand/Unfold a single function, place the cursor at the start of the function and press &lt;strong&gt;cmd + (cmd + plus sign)&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-expand-all-functions-1024x723.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-expand-all-functions-1024x723.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To expand all functions, press &lt;strong&gt;cmd + A&lt;/strong&gt; to select file content and then press &lt;strong&gt;cmd shift +&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-expand-single-function-1024x723.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-expand-single-function-1024x723.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;13. View File Structure&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;To see the complete list of functions in a file, press &lt;strong&gt;cmd + F12&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-file-structure-1024x723.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-file-structure-1024x723.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;14. View Function Declaration (Implementation)&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;To see a function implementation, place the cursor on the function name and press &lt;strong&gt;cmd + B&lt;/strong&gt;. To do it using the mouse, press and hold the &lt;strong&gt;cmd&lt;/strong&gt; key and &lt;strong&gt;click&lt;/strong&gt; the function name&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-function-implementation-1024x723.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-function-implementation-1024x723.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;15. Find Function Usages in the Codebase&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;To view the places a function is used in the codebase, place cursor at the start of the function and press &lt;strong&gt;Option + F7&lt;/strong&gt; OR &lt;strong&gt;right-click&lt;/strong&gt; in the file and click &lt;strong&gt;Find Usages&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-find-usages-1024x723.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-find-usages-1024x723.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;16. Move Statement Up/Down&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;To move statements, place the cursor in the statement and  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;press &lt;strong&gt;cmd + shift + up&lt;/strong&gt;  &lt;strong&gt;arrow&lt;/strong&gt; key to move the statement up.
&lt;/li&gt;
&lt;li&gt;press &lt;strong&gt;cmd + shift + down arrow&lt;/strong&gt; key to move the statement down.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-move-statement-up-1024x723.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-move-statement-up-1024x723.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-move-statement-down-1024x723.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-move-statement-down-1024x723.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;17. View File in Finder&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;To open a file in new window, &lt;strong&gt;right click&lt;/strong&gt; in file -&amp;gt; click &lt;strong&gt;Open In&lt;/strong&gt; -&amp;gt; click &lt;strong&gt;finder&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-open-in-finder-1024x723.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-open-in-finder-1024x723.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;18. Move Statements in IF Condition or Function&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;To move a code block in an IF statement or a function, press &lt;strong&gt;option + cmd + T&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-code-refactor-1024x723.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-code-refactor-1024x723.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;19. Convert Promise Returning Function to async-await&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;This short-cut is very useful for refactoring old JavaScript codebase using callbacks.&lt;/p&gt;

&lt;p&gt;You can easily convert a function returning promise using callback to async-await format.&lt;br&gt;&lt;br&gt;
Place cursor at the start of function and press &lt;strong&gt;option + enter&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding-convert-to-async-1024x538.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding-convert-to-async-1024x538.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;20. Local History&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;WebStorm maintains local history. If you need to see old code, you can use Webstorm's local history.&lt;br&gt;&lt;br&gt;
To view the local history of a file, &lt;strong&gt;Right click in file&lt;/strong&gt; -&amp;gt; click &lt;strong&gt;Local history&lt;/strong&gt; -&amp;gt; click &lt;strong&gt;Show History&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-view-local-history-1024x723.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmastercodding.com%2Fwp-content%2Fuploads%2F2023%2F10%2Fmastercodding.com-view-local-history-1024x723.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Summary&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;This brings us to the end of the shortcuts list. I have listed shortcuts for tasks that are most common. Hope this helps to boost your productivity. Find below the list of shortcuts we explored in this article&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Print console.log Faster
&lt;/li&gt;
&lt;li&gt;Comment Out Code
&lt;/li&gt;
&lt;li&gt;Search File or Folder
&lt;/li&gt;
&lt;li&gt;Search Text Everywhere
&lt;/li&gt;
&lt;li&gt;Last Edited Location
&lt;/li&gt;
&lt;li&gt;Recently Modified Files
&lt;/li&gt;
&lt;li&gt;Jump to Line Number
&lt;/li&gt;
&lt;li&gt;Multi-Cursor Editing
&lt;/li&gt;
&lt;li&gt;Rename a Function or Variable
&lt;/li&gt;
&lt;li&gt;Select Opened File in Project Window
&lt;/li&gt;
&lt;li&gt;Fold Code
&lt;/li&gt;
&lt;li&gt;Expand Code
&lt;/li&gt;
&lt;li&gt;View File Structure
&lt;/li&gt;
&lt;li&gt;View Function Declaration (Implementation)
&lt;/li&gt;
&lt;li&gt;Find Function Usages
&lt;/li&gt;
&lt;li&gt;Move Statement Up/Down
&lt;/li&gt;
&lt;li&gt;View File in Finder
&lt;/li&gt;
&lt;li&gt;Move Statements in Condition or Function
&lt;/li&gt;
&lt;li&gt;Convert Promise Returning Function to async-await
&lt;/li&gt;
&lt;li&gt;Local History&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If want to know about any other shortcut, drop a message in the comment section.&lt;/p&gt;

&lt;p&gt;Please like and share the article if you find it helpful.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; &lt;em&gt;The inspiration for the article is taken directly from&lt;/em&gt; &lt;a href="https://www.jetbrains.com" rel="noopener noreferrer"&gt;&lt;em&gt;JetBrains Official Site&lt;/em&gt;&lt;/a&gt;&lt;em&gt;. You can see the complete list of shortcuts on&lt;/em&gt; &lt;a href="https://www.jetbrains.com/webstorm/guide/tips/" rel="noopener noreferrer"&gt;&lt;em&gt;tips page&lt;/em&gt;&lt;/a&gt;&lt;em&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
