Newbie question

Hello there,
I'm completly new to IntelliJ Idea so please forgive me if this question is a newbie one.

How can I automatically replace a string while I'm typing?
I ask mainly because I'm coding in Lua and on my keyboard (italian layout) there is no "~" char so I have to type everytime Alt-0126 in order to display it (what the hell Lua creators have in mind when they implemented the "not equal" ?!?!?!?)
So I would like that IntelliJ automatically replaces the string "!=" with "~=".
Is it possible? And, if yes, how?

Thanks in advance
Giorgio

2 comments

Hi Giorgio,

You can create a live template for that (please note that it's not executed automatically, you need to trigger it manually, default shortcut for that is Tab).

Denis

0

You could consider using a 3rd party application that remaps your keyboard
across the whole OS. For example on Windows there's SharpKeys (http://www.randyrants.com/2008/12/sharpkeys_30.html).

Hello there,
I'm completly new to IntelliJ Idea so please forgive me if this
question is a newbie one.
How can I automatically replace a string while I'm typing?

I ask mainly because I'm coding in Lua and on my keyboard (italian
layout) there is no "~" char so I have to type everytime Alt-0126 in
order to display it (what the hell Lua creators have in mind when they
implemented the "not equal" ?!?!?!?)

So I would like that IntelliJ automatically replaces the string "!="
with "~=".

Is it possible? And, if yes, how?

Thanks in advance
Giorgio
---
Original message URL:
http://devnet.jetbrains.net/message/5442759#5442759



0

Please sign in to leave a comment.