网络技术

notepad++编辑器的爱恨纠结

凌晨看到一篇文章《notepad++如何显示隐藏的回车换行符?如何转换格式?》,这篇文章主要是讲使用notepad++做开发时常用的一项技能。我个人也是非常喜欢用notepad++的,但是有爱有恨啊。

 

notepad++有什么优势

代码编辑器中的功能是相当丰富的,一般主流的代码编辑器都有以下几项功能或特色:

    1. 主流的编辑器一般都开源、有活跃的社区,非常有助于自身进步。
    2. 支持安装和配置插件、主题。这其实也是开源的一部分。
    3. 多编程语言语法高亮、代码提示(或者补全格式)、支持正则表达式、包括什么定位行、打标记、复制当前文件名,文件路径、项目文件夹等等快捷操作。

第三项不用多说,大小编辑器或多或少都有这种功能。前两项是近几年来兴起的,因为审美和工作效率需要提速的需要吧,开源越来越被人们喜欢和接受以及开发大规模使用,所以有前两项就能成为主流。但是实质上notepad++在前两项上并不占优势,第三项功能里面比较齐全,而且有自己的特色,就是小巧精致。一般网速和电脑配置其实下载notepad++只需一秒,安装notepad++只需五秒就够。这一点其他编辑器基本做不到,其实sublime也算较快,以后再说。

分析不同阶段和编程语言在什么条件下合适用notepad++

写代码的人大概分为三个阶段吧,学习、开发、维护。不管是学习还是开发还是维护,基础的都是四件事,其他编辑器的功能先不说。前两件事就是ctrl+c、ctrl+v,这个也没什么好说就是借鉴代码呗,后两件事就是写代码和改代码。下面就从不同阶段和不同的编程语言来说说notepad++的利弊。

学习阶段:

学习阶段里面的写,其实写不了多少的,只要是个代码编辑器就可以完成。不管是java、c、html、php。其实都差不多,前期编程语言的语法基本都简单,不涉及大量写和大量替换。但是学习阶段使用notepad++不便于修改前端以外的其他语言。比如写一段java和eclipse对比看看:

notepad++和eclipse对比java-纠错:

可以看到notepad++是没有纠错功能的,我不知道有没有相关纠错插件或者其他方法。如有请补充赐教,不胜感激。但是eclipse相比就强大了,在第四行输入e,第四行报错,再输入一个全角的问号,第三行报错。这个就不解释了。

 

notepad++和eclipse对比java-补全:

  1. notepad++补全:
  2. eclipse的补全:

    说到这,再提一下eclipse的补全设置。打开(窗口)window-(偏好)perferences-(选择语言java)Java-(编辑器)Editor-(内容辅助)Content Assist,在(自动补全/或者叫输入提示)Auto Activation的第二行(自动触发java的输入提示)Auto activation triggers fo Java的后面输入.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ点击(保存并关闭)apply and close,即可。注意前面有个点(.)

可以看到在代码补全上notepad++还是挺适合初学者使用的。但是仅限于在入门阶段。

 

当然写html、css、js这些还是够用的。蓝色标签,红色标签属性,紫色属性内容,黑色输出内容,绿色注释,这个默认的文字颜色看着就非常舒服了。

 

开发阶段:

复制粘贴还是不用说。开发阶段还拿java举例,这个就不贴图了,大家可以试试,在notepad++里面写ssl,出现的提示只有两个,SslRMIClientSocketFactory和SslRMIServerSocketFactory,只有这两个。但是在eclipse里面会出现SSLContextSpi、SSLEngine、SSLHandshakeException、SSLProtocolException等几十个匹配结果,而且会自动补全import javax.net.ssl.SSLContextSpi;这些,非常有助于提升效率,但是偶尔我用notepad++,有些东西就感觉是快要写不出来了。

至于debug什么的,就可以不需要说了。

所以这个说了其实也等于没说……用过的都知道。如果是需要大量后端、动态语言工作需要控制台调试的语言,就放弃用notepad++吧。

维护阶段:

notepad++占用内存特小特小,可以同时打开上千文件,这个维护阶段主要就是就涉及到正则了,关于在notepad++中正则的使用下一篇文章单独写。

 

为何还不卸载notepad++

  1. 不占ram,卸载了也节省不了多少磁盘空间。
  2. 也不占rom,运行特快,基本没有卡死未响应过,曾因查找流氓广告同时打开1000多php文件,8G内存就没有问题!用来查找替换(包括正则)
  3. 用了好多年,快捷键也记得很清楚了,也还没至于和其他编辑器快捷键搞混,也非常顺手,实在不想放弃。
  4. 有个愿望就是写个插件,功能是按一下某个快捷键出来四个空格,水平太次没能实现,当然如果要按ctrl+shift+alt+?那就算了,还不如按四下空格[滑稽]。
  5. 比较编辑器和IDE还是有区别的,要求太多也不合适,物尽其用吧,总能用得到的,必备。水到这了……

41 thoughts on “notepad++编辑器的爱恨纠结

  1. Definitely believe that which you said. Your favorite justification appeared to be
    at the internet the simplest thing to take into account of.
    I say to you, I definitely get irked even as folks think about concerns
    that they plainly do not realize about. You controlled to hit the nail upon the highest and outlined out the whole thing without having side
    effect , people could take a signal. Will likely be again to get more.
    Thanks

  2. Heya i’m for the first time here. I came across this
    board and I find It really helpful & it helped me out much.
    I’m hoping to give something back and help others such as you aided me.

  3. Do you have a spam problem on this site; I also am a blogger, and I was curious about
    your situation; we have created some nice methods and we are looking to exchange techniques with
    others, please shoot me an e-mail if interested.

  4. Hello! I know this is kinda off topic however , I’d figured I’d ask.
    Would you be interested in exchanging links or maybe guest writing a blog
    post or vice-versa? My site covers a lot of the same topics as
    yours and I feel we could greatly benefit from each other.
    If you happen to be interested feel free to shoot me an email.

    I look forward to hearing from you! Superb blog by the way!

  5. Hi there just wanted to give you a brief heads up
    and let you know a few of the images aren’t loading correctly.
    I’m not sure why but I think its a linking issue. I’ve tried it in two different internet browsers and both show the same outcome.

  6. I have been browsing online more than three hours today, yet I never found any interesting article like yours.

    It’s pretty worth enough for me. Personally, if all webmasters and
    bloggers made good content as you did, the net will be a lot more useful than ever before.

  7. You really make it seem so easy with your presentation but I find this topic
    to be actually something which I think I would never understand.
    It seems too complex and extremely broad for me.
    I’m looking forward for your next post, I’ll try to get the hang of it!

  8. Have you ever thought about creating an ebook or guest authoring on other websites?
    I have a blog based on the same topics you discuss and
    would love to have you share some stories/information. I know my subscribers would enjoy your work.

    If you’re even remotely interested, feel free to send me an email.

  9. Hi there just wanted to give you a quick heads up and let
    you know a few of the pictures aren’t loading correctly.
    I’m not sure why but I think its a linking issue.

    I’ve tried it in two different internet browsers and both
    show the same results.

  10. My coder is trying to convince me to move to .net from PHP.
    I have always disliked the idea because of the costs. But he’s tryiong none the
    less. I’ve been using Movable-type on a variety of websites
    for about a year and am concerned about switching to another platform.
    I have heard fantastic things about blogengine.net. Is there a way
    I can import all my wordpress posts into it?

    Any help would be greatly appreciated!

  11. I know this if off topic but I’m looking into starting my own blog and was wondering what all is needed to get setup?
    I’m assuming having a blog like yours would cost a pretty penny?
    I’m not very web savvy so I’m not 100% sure.
    Any suggestions or advice would be greatly appreciated.

    Cheers

  12. Hey there just wanted to give you a quick heads up and let you know a few of the images aren’t
    loading correctly. I’m not sure why but I think its a linking issue.

    I’ve tried it in two different internet browsers and both show the same outcome.

  13. Hi there I am so excited I found your website, I really found you by mistake, while I was looking on Digg for something else, Anyways I am here now and would just like to say thanks a lot for a incredible post and a all
    round exciting blog (I also love the theme/design), I don’t have time to go through it all at the moment but I have book-marked it and also added in your RSS
    feeds, so when I have time I will be back to read a great deal more, Please do keep up the awesome
    job.

  14. I loved as much as you’ll receive carried out right here.
    The sketch is tasteful, your authored material stylish.

    nonetheless, you command get bought an edginess over that you wish be delivering the following.
    unwell unquestionably come more formerly again as exactly the same nearly very
    often inside case you shield this hike.

  15. Great post. I was checking continuously this blog and I’m impressed!
    Very helpful info particularly the last part 🙂
    I care for such info much. I was seeking this particular info for a very long time.
    Thank you and good luck.

发表评论

电子邮件地址不会被公开。 必填项已用*标注

答案 : *
27 + 3 =


返回顶部