Jump to content
  • 0

Erased Indentation on copy/paste in Evernote


JH Woo

Idea

When I copy this code from visualstudio code:

 

function checkDir(fname) {

    var dir = path.dirname(fname);

    var dirlist = dir.split("/");

    var p = "";

    for (var i in dirlist) {

        p += dirlist + "/";

        if (!fs.existsSync(p)) {

            fs.mkdirSync(p);

        }

    }

}

And paste it into evernote, it becomes this code:
 
 
function checkDir(fname) { 

var dir = path.dirname(fname); 

var dirlist = dir.split("/"); 

var p = ""; 

for (var i in dirlist) { 

p += dirlist + "/"; 

if (!fs.existsSync(p)) { 

fs.mkdirSync(p);

}

}

}

 

 

how can i fix it!

i am using a mac sierra 10.12.6, and evernote version 7.0.1 (456248 App Store), 1.38.3824

Link to post

2 replies to this idea

Recommended Posts

  • 0

If "Enable code block" is enabled in Evernote's preferences (it's located under Software Update), then just type 3 backticks (` or the symbol underneath the tilde key ~ ) and a box will form in your note. If you then paste the code into that box, it will preserve the formatting in plain text.

I hope that helps! Let me know if I can be of additional assistance.Code_Block.png.b1accafcffc120ac795010ddde49e50a.png

 

All_My_Notes.thumb.png.b7fa8783bf8cefe25aede8fad74b6e54.png

Link to post
  • 0
On 2018. 3. 1. at 12:52 AM, macfixer said:

If "Enable code block" is enabled in Evernote's preferences (it's located under Software Update), then just type 3 backticks (` or the symbol underneath the tilde key ~ ) and a box will form in your note. If you then paste the code into that box, it will preserve the formatting in plain text.

I hope that helps! Let me know if I can be of additional assistance.Code_Block.png.b1accafcffc120ac795010ddde49e50a.png

 

All_My_Notes.thumb.png.b7fa8783bf8cefe25aede8fad74b6e54.png

thank you so much for your reply.

i updated my evernote and used your tip.

but it still remain. ^^;

 

ps) i use an editor "Visual Studio Code".

 

 

 

스크린샷 2018-03-05 17.31.55.png

스크린샷 2018-03-05 17.32.14.png

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...