So i have thoroughly been enjoying learning Kotlin...
# announcements
s
So i have thoroughly been enjoying learning Kotlin for the past month or so, but now I find myself routinely forgetting semicolons when i go back to java, js, or ts 😞
💯 1
d
js and ts technically have optional semicolons 😉
l
That is the Kotlin lock-in 🧌
s
yeah, but my linter yells at me 😢
s
i usually finish my lines in java in intellij with cmd+shift+enter which adds semicolon automatically 😄
💯 3
s
interesting, i did not know that. I dunno if i could get used to adding 2 more buttons for something that is as automatic as breathing at this point 🙂 But i AM always impressed by some of the little things IntelliJ has hidden away.
m
It will also close any expressions you're on: adding
)
,
{
, etc, as needed. I use it pretty much always
(allegedly ... I've never seen it close a
)
, though it's supposed to, because IntelliJ already inserts the
)
for me when I add
(
...)
s
maybe i'll give it a shot for fun. Ha... throw out a joke post and learn something new 🙂 what a nice place this is lol
m
There should be a "keyboard shortcut a day" twitter account for IntelliJ 😉
s
it finishes any expression so it is really useful
or it jumps to/ads next appropriate thing for example if you start typing if(someexpresion and press cmd+shift+enter it ads ) { } and puts the cursor between curly braces
s
damnit now i really do have to start using it.
s
to sum it up - intellij is great when you get used to all the little productivity things it provides 🙂
it just has to bi put into muscle memory like anyhting else
s
its been amazing. Up until recently i've been purely desktop java code for many many years using Eclipse which was fine. But this year i had to work on some spring and angular stuff and eclipse was killing me. Intellij to the rescue... it only took a day or two to convince me to pay for it.
but i know i'm not using it to its fullest even.. so many nice little things
s
@Spike Baylor assuming youre using tslint, you can disable warnings/errors for missing semicolons
s
Yeah.. Part of that probably has more to do with typescript being fairly new to our process and so we dont have our own lint/style guides so right now we just have a standard set of rules. Im sure thats something i could get removed but also not THAT big of a deal