# Please make me type "else" properly at Intellij Rust Plugin!

**URL:** <https://internals.rust-lang.org/t/please-make-me-type-else-properly-at-intellij-rust-plugin/14852>\
**Category:** tools and infrastructure\
**Created:** [June 9, 2021, 12:13pm UTC](https://internals.rust-lang.org/t/please-make-me-type-else-properly-at-intellij-rust-plugin/14852 "2021-06-09T12:13:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![MintBee](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/mintbee/32/8155_2.png) [@MintBee](https://internals.rust-lang.org/u/MintBee)\
**Post date:** [June 9, 2021, 12:13pm UTC](https://internals.rust-lang.org/t/please-make-me-type-else-properly-at-intellij-rust-plugin/14852/1 "2021-06-09T12:13:10Z")

</div>

I'm just a programmer like your guys. Which means, I do following eeevery single day!

![uhhhh...](https://us1.discourse-cdn.com/flex002/uploads/rustlang/original/2X/0/0deb30264eefa3493c87d6d9f11377f8fa4b1c11.gif)uhh... not good at all I think

I think after if block, when I type "el" through the keyboard, "else" must be positioned at the very first of completion recommendation.

Can developers who charge with Intellij Rust Plugin kindly consider this part?

---

<div class="post-metadata">

**Author:** ![jjpe](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/jjpe/32/9779_2.png) [@jjpe](https://internals.rust-lang.org/u/jjpe)\
**Post date:** [June 9, 2021, 12:18pm UTC](https://internals.rust-lang.org/t/please-make-me-type-else-properly-at-intellij-rust-plugin/14852/2 "2021-06-09T12:18:23Z")

</div>

This seems to me like it's more at home on [users.rust-lang.org](http://users.rust-lang.org).

The internals forum is for matters internal to the development of the Rust language.

---

<div class="post-metadata">

**Author:** ![MintBee](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/mintbee/32/8155_2.png) [@MintBee](https://internals.rust-lang.org/u/MintBee)\
**Post date:** [June 9, 2021, 12:20pm UTC](https://internals.rust-lang.org/t/please-make-me-type-else-properly-at-intellij-rust-plugin/14852/3 "2021-06-09T12:20:11Z")

</div>

I see, sorry about that. My bad

---

<div class="post-metadata">

**Author:** ![notriddle](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/notriddle/32/14082_2.png) [@notriddle](https://internals.rust-lang.org/u/notriddle)\
**Post date:** [June 9, 2021, 9:53pm UTC](https://internals.rust-lang.org/t/please-make-me-type-else-properly-at-intellij-rust-plugin/14852/4 "2021-06-09T21:53:00Z")

</div>

This seems like a borderline case, since it's for an actual language developer tool.

In any case, the ideal place is the issue tracker for intellij-rust itself. It's definitely a bug in there. [Issues · intellij-rust/intellij-rust · GitHub](https://github.com/intellij-rust/intellij-rust/issues)

---

<div class="post-metadata">

**Author:** ![bascule](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/bascule/32/3057_2.png) [@bascule](https://internals.rust-lang.org/u/bascule)\
**Post date:** [June 9, 2021, 10:14pm UTC](https://internals.rust-lang.org/t/please-make-me-type-else-properly-at-intellij-rust-plugin/14852/5 "2021-06-09T22:14:52Z")

</div>

I agree with the people saying this post is off-topic for this forum, so apologies for responding but...

I've been a long-time Rust IntelliJ Plugin user, and I'm not even sure what problem you're trying to illustrate here...

What sequence of keys are you even hitting?

If I try to tab complete `} e` in that position, I get `env!`, not `eprintln!`, which is suboptimal, but I usually just type out `else`, and if you _really_ want to tab complete your elses, at least for me tab completing `el` is sufficient...

Anyway, you probably want to file a bug report here: [Issues · intellij-rust/intellij-rust · GitHub](https://github.com/intellij-rust/intellij-rust/issues)

---

<div class="post-metadata">

**Author:** ![MintBee](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/mintbee/32/8155_2.png) [@MintBee](https://internals.rust-lang.org/u/MintBee)\
**Post date:** [June 10, 2021, 12:23am UTC](https://internals.rust-lang.org/t/please-make-me-type-else-properly-at-intellij-rust-plugin/14852/6 "2021-06-10T00:23:14Z")

</div>

I acknowledged vagueness of my post either and as your advice, I issued it.

> <https://github.com/intellij-rust/intellij-rust/issues/7325>
>
> \<!--
> Hello and thank you for the issue!
> If you would like to report a bug, we …have added some points below that you can fill out.
> Feel free to remove all the irrelevant text to request a new feature.
> \--\>
> 
> \## Environment
> 
> \* \*\*IntelliJ Rust plugin version:\*\* 0.4.148.3911-211
> \* \*\*Rust toolchain version:\*\* 1.52.1 (9bc8c42bb 2021-05-09) x86\_64-pc-windows-msvc
> \* \*\*IDE name and version:\*\* CLion 2021.1.1 (CL-211.7142.21)
> \* \*\*Operating system:\*\* Windows 10 10.0
> \* \*\*Macro expansion engine:\*\* new
> \* \*\*Name resolution engine:\*\* new
> 
> \## Problem description
> 
> I actually have no idea about what most Rustaceans are doing when trying to use \`else\` keyword, but personally, I usually just type "el" and enter: let IDE complete it.
> 
> What makes me very uncomfortable is following
> !\[image\](https://user-images.githubusercontent.com/60168844/121368921-63a4ca00-c976-11eb-87c1-9631abdba558.png)
> 
> After \`if\` block, why in the world eprintln!() is recommended first followed by private fn and than finally and eventually else is recommended?
> 
> !\[image\](https://user-images.githubusercontent.com/60168844/121368983-715a4f80-c976-11eb-9d7e-0ef46d4debb0.png)
> 
> 
> If I type "els" it shows me else finally, but I've always used just "el" to type \`else\` and there was no problem to type \`else\` properly except for this case in my entire programming experience. (makes me insane!)
> 
> Can guys who work with Intellij Plugin kindly consider this when they develop it?
> Imo, it doesn't make any sense in the given context.
> 
> 
> \<!--
> Please include as much of your codebase as needed to reproduce the error.
> If the relevant files are large, please provide a link to a public repository or a \[Gist\](https://gist.github.com/).
> \--\>

Thanks for thoughtful answer, I should have explained it more precisely.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/system/32/14092_2.png) [@system](https://internals.rust-lang.org/u/system)\
**Post date:** [September 8, 2021, 12:23am UTC](https://internals.rust-lang.org/t/please-make-me-type-else-properly-at-intellij-rust-plugin/14852/7 "2021-09-08T00:23:55Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
