How to stop IntelliJ from surrounding a line of highlighted code with a bracket (curly or square)
Hi everyone,
I've been looking on Stack-overflow but couldn't find an answer, so thought i'd ask it here instead.
I'd like to switch off IntelliJ's setting that automatically places highlighted code within a bracket (curly or square) or parentheses whenever i press that specific bracket ({, }, [, or ]). What happens now with my current settings is that, whenever i press (, ), {, }, [, or ] while some code is highlighted - say "a + b". Then that code, "a + b" is encased. E.g. if i pressed '{', then the code becomes '{a + b}'. So i can i disable this functionality?
Thank you guys. As always, i appreciate your help.
Regards
Jude
请先登录再写评论。
Try turning 'Surround selection when typing quote or brace' in Preferences | Editor | General | Smart keys off
Thank Elena, that worked.
Have good day.