2017-09-21 2 views
-1

アトムエディタでショートカットを使用してユーザー定義のテキストを貼り付けることができるかどうかを知りたいと思います。可能であれば、私はどのように知りたいのですか?アトムエディタでショートカットを使用してユーザー定義テキストを貼り付け

たとえば、Alt-Shift-Fを押すと\frac{}{}がエディタに貼り付けられます。

+0

/snippets /)? – idleberg

+0

私は今までに存在していたことを知らなかったので。私を啓発してくれてありがとう。 – limeeattack

答えて

1

これは、シフト+スペースでhtml非改行スペースを挿入するサンプルです。あなたのinitスクリプトで

:あなたのkeynmapで

atom.commands.add 'atom-text-editor', 'custom:html-hard-space',-> 
    editor = atom.workspace.getActiveTextEditor() 
    editor.insertText(' ') 

[スニペット](http://flight-manual.atom.io/using-atom/sectionsを使用しないのはなぜ
'atom-text-editor:not([mini])': 
    'shift-space': 'custom:html-hard-space' 
+1

これはまさに私が探していたものです!どうもありがとうございます! – limeeattack

関連する問題