[Cuis-dev] newline characters in method code

Juan Vuletich juan at cuis.st
Fri Oct 18 08:49:04 PDT 2024


On 10/17/2024 10:43 AM, Mark Volkmann via Cuis-dev wrote:
> Often, but not always, when I press the return key to insert a line of 
> code in a method, I see carriage return arrows as shown in the 
> attached screenshot. I have to manually delete those. I'm curious why 
> those get inserted and whether there is a way to prevent that from 
> happening. I'm on macOS.
>
> -- 
> R. Mark Volkmann
> Object Computing, Inc.

Cuis includes keystrokes for entering alternate line ending characters. So:
[return/enter] -> Lf
[alt] + [enter] -> CrLf
[command] + [return] -> CrLf
[ctrl] + [alt] + [enter] -> Cr
[control] + [command] + [return] -> Cr

But nobody seems to find them useful. Additionally, the Mac sometimes 
returns [command]+[return] when command key is not pressed, leading to 
the problem you see. I just disabled that code, meaning that any such 
combination will add a regular LF character. If someone needs it back, 
we may add a preference.

Thanks,

-- 
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20241018/899ab23c/attachment.htm>


More information about the Cuis-dev mailing list