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.

Can't disable auto closing of do/end block

See original GitHub issue

Environment

  • Elixir & Erlang versions (elixir --version): Erlang/OTP 22 [erts-10.7] [source] [64-bit] [smp:32:32] [ds:32:32:10] [async-threads:1] [hipe]

Elixir 1.10.3 (compiled with Erlang/OTP 22)

  • VSCode ElixirLS version: 0.5.0
  • Operating System Version: linux 5.4.62

Troubleshooting

  • Restart your editor (which will restart ElixirLS) sometimes fixes issues
  • Stop your editor, remove the entire .elixir_ls directory, then restart your editor

Issue

When I type do to start a block and press Enter, VS Code automatically adds a matching end on the next line. It doesn’t seem to be possible to disable that behavior.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
michallepickicommented, Dec 25, 2021

@lukaszsamson I am no longer in need of that tweak, somehow do/end completion works good enough for me now - probably due to other changes done in the meantime… Sorry! I’m not even sure if my links are relevant any more, maybe.

1reaction
axelsoncommented, Sep 16, 2020

Hi, you are correct that it is not currently possible to control that behavior. On the ElixirLS side that is controlled by ElixirLS.LanguageServer.Providers.OnTypeFormatting. A PR to enable/disable the automatic insertion of end with a configuration setting would be accepted so I’ve marked this issue as an enhancement request.

Read more comments on GitHub >

github_iconTop Results From Across the Web

VS Code - Turn off auto close tags, but leave on autocomplete
Go to File > Preferences > Settings, search for html.autoClosingTags and set it to false . This will make it so when you...
Read more >
Add settings to disable automatic block comment closing
1. Start a comment with /**. 2. Hit Return. WebStorm will automatically insert the comment block template, consisting of an asterisk and the...
Read more >
Prevent in-app purchases from the App Store - Apple Support
Tap Content & Privacy Restrictions. If asked, enter your passcode, then turn on Content & Privacy. Tap iTunes & App Store Purchases. Tap...
Read more >
Option to disable auto-close parenthesis? - Logseq forum
I want to disable auto-closing parenthesis feature. ... I looked up upon starting to use Logseq “for real” and I'm very disappointed to...
Read more >
Block or allow pop-ups in Chrome - Computer - Google Support
By default, Google Chrome blocks pop-ups from automatically showing up on your screen. When a pop-up is blocked, the address bar will be...
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