<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Chuan on Medium]]></title>
        <description><![CDATA[Stories by Chuan on Medium]]></description>
        <link>https://medium.com/@liu.chuan.yuan?source=rss-1c85010b64ea------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*tPQSNPzESMCs9mt305XQgA.jpeg</url>
            <title>Stories by Chuan on Medium</title>
            <link>https://medium.com/@liu.chuan.yuan?source=rss-1c85010b64ea------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 06:53:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@liu.chuan.yuan/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Must have WebStorm, Vim, and Emmet hotkeys for HTML editing]]></title>
            <link>https://medium.com/@liu.chuan.yuan/must-have-webstorm-vim-and-emmet-hotkeys-for-html-editing-586723db7f5e?source=rss-1c85010b64ea------2</link>
            <guid isPermaLink="false">https://medium.com/p/586723db7f5e</guid>
            <category><![CDATA[vim]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[html]]></category>
            <dc:creator><![CDATA[Chuan]]></dc:creator>
            <pubDate>Sat, 19 Oct 2024 11:25:24 GMT</pubDate>
            <atom:updated>2024-10-19T11:25:24.085Z</atom:updated>
            <content:encoded><![CDATA[<p>In a perfect word, the speed of writing code should match the speed of your thoughts. But this world isn’t, so here are tips to reduce the lag as much as possible. This isn’t an exhaustive list, so do comment if I missed anything worth mentioning.</p><p>My WebStorm hotkeys might differ to yours, and I’m sure VSCode can achieve what WebStorm can.</p><p><strong>Go to next edit point and previous edit point (Emmet)</strong></p><p>Go to the next empty section, such as class or content. Good for finding empty divs that you forgot to fill in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*578P0mksNNFGBC-XBjArAg.gif" /></figure><p><strong>Move caret to matching brace (Emmet)</strong></p><p>⌃⌘\ is my favourite way to jump round HTML tags because unlike the vim option below, it has less keystrokes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*UECDj5PNmlJMem_oQSbVqg.gif" /></figure><p><strong>Move caret to matching tag with selection (Vim)</strong></p><ul><li>Use v for visual mode.</li><li>Use it while in Visual mode to select the content inside the current tag. This selects only what’s inside the tag, excluding the tag itself.</li><li>Use at while in Visual mode to select everything, including the current tag&#39;s opening and closing tags.</li><li>Use o while in Visual mode to toggle the cursor between the start and end of the current selection.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*n2fMXtSfVn7OUfwxPz1WuA.gif" /></figure><p><strong>Go to code block end and code block start (WebStorm)</strong></p><p>⌃⌘⇢, and ⌃⌘⇠. You will notice a trend that most modifiers are ⌃⌘, and this is done on purpose.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*VIJ1tPZd8eDCT-aqGdSB6g.gif" /></figure><p><strong>Expand/Shrink selection (WebStorm)</strong></p><p>Similar to above, just add shift to select and highlight.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*Yr5o10Wsk1uvhksSVvQPSQ.gif" /></figure><p><strong>Go to previous cursor position (Vim)</strong></p><p>:jump to see history of jump locations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*tMLt_87e7JfyQpSjRJiwXA.gif" /></figure><p><strong>Surround and update tag (Emmet)</strong></p><p>⌃⌘S means surround and ⌃⌘U means update.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*XK4Vy91wOhTNdpdNdzKA6A.gif" /></figure><p><strong>Unwrap/remove (WebStorm)</strong></p><p>⌃⌘⌫ shares the same ⌃⌘ modifier as above.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*x7n38hGzlvj-m_Ch7rui_g.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=586723db7f5e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>