首页 > 解决方案 > Rewrap text wrapped with wrong marks/brackets

问题描述

I need some help. I'm using Atom as ide and I need to rewrap some texts with other characters in order to fix a bunch of typos in a code.

Example:

"text1":"text2"

has to become

foo['text1'] = "text2"

I Just need to rewrap a word with other things of my choice obviously keeping the original word inside it. Does anyone knows a plugin for Atom or NPP or any text editor that could do at least something similar?

Question:

Does anyone knows how to do this with a regex instead?
I think it is a pretty common mistake to fix.
Thank you so much in advance.

标签: javascriptpluginsrefactoringatom-editorediting

解决方案


推荐阅读