How can I keep indents on black line when pasting code?

已回答
if (some < bigger) {
const now = moment();
const nowDate = now.toDate();
// here
console.log(now);
console.log(nowDate);
}

I already turned on 'Keep indents on empty lines' option, but indentation is removed if I copy & paste the code.

Is there any solution?

0

Change the "Preferences | Editor | General | Smart Keys > Reformat on paste" setting: 

0

请先登录再写评论。