Typing < and > characters with ANSI keyboard lacking the key these characters are located on

Is there any way to enter less than < and greater than > characters?

enter image description here

See Instructions for using Windows Alt Codes for help on entering Alt Codes.

Source ALT Codes - Alt Codes for Maths / Mathematics


This combination works fine for me on Linux systems:
Alt Gr+Shift+Z to <
Alt Gr+Shift+X to <

Regards


Use free AutoHotKey tool and add these two simple macros:

>!u::<  ; Right Alt + u
>!i::>  ; Right Alt + i

This way you mapped your
Alt Gr+U to < and
Alt Gr+I to >.

I chose combinations with Alt Gr (right Alt key) because they are already natural at your national keyboard. But you can use any other mapping you wish.

From higher perspective, this way of keyboard customization can be better than simply finding where the character is located, because this way you can add any other characters you frequently need. For example:

>!f::«  ; Right Alt + f
>!g::»  ; Right Alt + g
>!a::→  ; Right Alt + a
>!b::•  ; Right Alt + b

The same for keyboard layouts with AltGr instead of right Alt key (thanks for reminding about this to loopernow) – and I am personally also using such a setup:

<^>!f::«  ; AltGr + f
<^>!g::»  ; AltGr + g
<^>!a::→  ; AltGr + a
<^>!b::•  ; AltGr + b

Note: make sure your are always running AutoHotKey elevated (i.e. Run as Administrator).