4 ms·
I'm curious, I hear this alot, but when I'm coding, whenever I need to type out constants, they're in ALL-CAPS. Do you remap caps-lock to an unused spot, or do
by ek750 5y ago
I'm curious, I hear this alot, but when I'm coding, whenever I need to type out constants, they're in ALL-CAPS. Do you remap caps-lock to an unused spot, or do you hold down shift while typing? I'm usually in vim or equivalent most of the time, FWIW.
- Phrenzy 5y agoI have an Ergodox-ez keyboard and I have gotten rid of the caps lock key, at least on my 'first layer.' My keyboard enables me to create up to 32 different layers. I have 3 that I use 99.98% of the time. My caps lock is available by pressing a key next to my left handed thumb and then pressing the key formerly known as the caps lock key.
- LandR 5y agoWhat language do you type constants in all caps ?
- doobiedowner 5y agoI see it in Programmable Logic Controllers. Engineering drawings often come in all caps and a program's input and output buffers are sometimes named to match. The older programs were in all caps because the programming terminals had no lowercase. https://www.artisantg.com/itemimages/AB_1747_PT1_View1.jpg https://www.artisantg.com/itemimages/AB_1747_PT1_View1.jpg
- JKCalhoun 5y agoI see it in Python.
- ovao 5y agoPretty common in C-family languages (global constants tend to be all-capped in many style guides), and for environment variables as well.
- bityard 5y agoDevops people have to type environment variables quite often which are almost always uppercase by convention.
- JKCalhoun 5y agoI hold down the shift (or Copy/Paste, ha ha).
- delta1 5y agoYeah I use caps lock as esc, and shift type capitals
- ducktective 5y agoIn vim, after typing `gravity_constant`, go to normal mode: vb~ There, the word is now in CAPS.