question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: `{` auto closing

See original GitHub issue

What is the problem?

It would be nice if the { is a js file was $ in an md file in the screenshot below:

auto-enclose

How can I reproduce it?

Enter $ in an md file.

Is there any error message in the console?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:22 (22 by maintainers)

github_iconTop GitHub Comments

2reactions
yzhang-ghcommented, Apr 23, 2019

Thanks for the suggestion.

I also have some custom snippets (with keybindings). For your case, it can be

{
    "key": "ctrl+whatever",
    "command": "editor.action.insertSnippet",
    "args": {
        "snippet": "\\begin{aligned}\n$TM_SELECTED_TEXT$1\\end{aligned}"
    },
    "when": "editorTextFocus && editorLangId == markdown"
},

However, as a Markdown extension, I guess this might be too special a feature. Let’s see whether there are other people also want this.


<> is provided by the official extension. I’m not sure whether we can override it.

See https://github.com/Microsoft/vscode/blob/3a12b7ac2efd2f1f01a646ef5272313ad50bf618/extensions/markdown-basics/language-configuration.json#L28-L34

1reaction
upupmingcommented, May 19, 2019

Keeping the plugin simple is a better idea, let me simply close this issue, for the <> auto closing problem, it is not very inconvenient when typing, but the implementation is too difficult. For math shortcuts, LaTeX-workshop is too complex, too. I will consider using my own key bindings.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to automatically close requests that are in a specific status.
This post describes the use of a python script to close requests that are put in a specific status using Custom Schedules. This...
Read more >
[Feature Request] Prevent issues from being closed ... - GitHub
I've located an existing “feature request” for disabling the auto-close issues feature and added your voice to it.
Read more >
How to stop auto close of request? - ServiceNow Community
Solved: I've got this workflow, that I added an approval to. The problem is, when it's approved, it auto closes the request.
Read more >
My Feature Request was Auto-Closed for being Inactive - Meta ...
I believe its a great tool for the forum to have, but I believe this should be removed from #features. I noticed recently...
Read more >
How To Turn Off Auto Closing Feature in Oracle Engagement ...
How to turn off auto-resolving and auto-closing feature in Service Requests? Solution. Sign In. To view full details, sign in with your My ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found