Can't disable auto closing of do/end block
See original GitHub issueEnvironment
- 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:
- Created 3 years ago
- Reactions:1
- Comments:8 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.
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 ofend
with a configuration setting would be accepted so I’ve marked this issue as an enhancement request.