在 File - settings - Editor - General- Smart Keys - Enter 去掉 Insert pair '}' 的对勾就可以了 转载于:https://www.cnblogs.com/hdphappy/p/10843777.html