title: Keyboard shortcut to expand code snippets in JupyterLab
body: <p>Does anyone know how to make a shortcut that would paste a certain code to the selected cell or expand a snippet into a chunk of code?<br>
  For example I would like to fill a cell with a list of useful imports when pressing something like <code>Ctrl+Shift+M</code>. This would expand the cell content to:<br>
  <code>import numpy as np 
   import pandas as pd 
  (...) .</code> </p>
  
  <p>Optionally this could work also like text completion tools available in some IDEs. For example when I write something like:<br>
  <code>;imp + TAB</code> . </p>
  
  <p>it would expand into the same list as above.</p>
  
  <p>Any ideas how this could be defined in JupyterLab? </p>
  
  <p>I saw <a href="https://stackoverflow.com/questions/49440087/map-keyboard-shortcut-to-code-snippet-in-jupyter-lab">this</a> answer, but it does not work for me (returning javascript error)</p>