2018年4月19日 星期四

Sublime Text 3 Customization: New line with semicolon at end (Hotkey) 換行自動加分號 快速鍵

Steps: 


  1. Place the cursor at the middle of a line of code. e.g. ("Hello") and put cursor in front of 'o'.
  2. Go to [Tools] >  [Record a Macro]
  3. Press "End" key on keyboard, then type ";" and press Enter.
    (If you want the cursor to stay at the end without breaking to new line then you don't have to press Enter)
  4. Go to [Tools] > [Stop Recording Macro]
  5. Test your macro by [Tools] > [Playback Macro] 
  6. If it performs correctly, [Tools] > [Save Macro] (ex: endOfLine.sublime-macro)
  7. Create a shortcut by adding this between the square brackets in your in your [Preferences] > [Key Bindings] - User file:
    {
    "keys": ["alt+enter"], "command": "run_macro_file", "args": {"file": "Packages/User/endOfLine.sublime-macro"} 
    }
  8. Now, every time you hit Alt + Enter, it will place the semicolon at the end of current line and move the cursor to the next line.


Reference: drdiv

2018年4月7日 星期六

spaceship plan: blue print

Contents:

1. Podcast: For English speaking practice, aspect practice and open up discuss.
2. Photos / designs: Self works.
3. Blog: About life, coding and career.
4. And the development of this web itself.

Tech:

1. By ASP.NET  MVC (to enhance work)
2. Front-end React or Angular