How to stop intellij from converting my code?

时间:2019-04-17 01:47:02

标签: java scala intellij-idea

I'm using scala and every time I paste my code it changes the format. I reset the settings but it keeps doing it. I can't find the setting I tried to disable in Smart Keys but still.

What I want to paste

addItem: "food", "arroz", "arroz.jpg", 300, 1.50;

What gets pasted

addItem //todo: labels is not supported
"food"
"arroz"
"arroz.jpg"
300
1.50

1 个答案:

答案 0 :(得分:2)

对我而言,这没有发生,但也许您选择了“在复制粘贴时将Java代码转换为Scala”,并在“在粘贴时不显示对话框并自动转换为Scala代码”下选中了。

Preferences -> Languages & Frameworks -> Scala -> Editor下进行检查。这是针对Mac的,但是如果您使用其他工具,我认为它与之相似。