Friday, June 14, 2013

Play with Notepad++

Hello Guys,

This is my first blog I am writing.One day I was sitting in the office doing nothing suddenly this thought came into my mind that why shouldn't I start writing a blog.So I decided to write but next challenge in front of me was the topic that I should start with.Then I thought what would the easiest thing for me to write as I am a technical person so what else could it be.So I decided to write on something related to technical stuff but then I thought why would people like to read my technical stuff when they can find everything over internet in just one click.The next thought came into my mind was that as a software engineer our life is already hell so why shouldn't i write something to make it easier.Then finally I decided that I would give you some tricks or shortcuts which I have learnt in my 3 years of experience and those tricks or shortcuts might be useful in your life specially for the fresher guys who are not from technical branches like me.

So guys lets start with the simplest thing which comes in our daily routine of everybody's life Notepad ++.Most of the people use notepad just for writing some text but if you really explore it.it's very powerful tool.Let's explore it little bit....

1.So many time in our work we need to copy one line many times.Generally what would you do is copy the whole line and paste is as many times you want.Notepad++ provides you a shortcut for that press Ctrl+D and see the magic.It's will write a duplicate line just below the line your cursor is in.

2.If you want to delete the current line just press CTRL+L.

3.If you want to convert any text to upper case select the text and press CTRL+SHIFT+U.

4.If you want to convert any text to lower case select the text and press CTRL+U.

5.This is interesting.If you want to move any line up and down then CTRL+SHIFT+UP ARROW for moving up and  CTRL+SHIFT+DOWN ARROW for moving down.

There are so many such type of shortcuts.I am writing only which come useful in your daily programming or in any other work.So the next is...

6.If you want to go any specific line number in your text file use CTRL+G.

7.If you want to block/unblock any line or number of lines in your JavaScript file just select all the lines and press CTRL+Q.

8.Suppose you are writing any java function or JavaScript function in Notepad and this function in very long I mean you can't see both the brackets of this function together and you have to find out the other end of this function just press CTRL+B.It will take you to the matching brace.

9.Suppose there are two consecutive lines and you want to join them then select both lines and press CTRL+J.It will join second line at the end of first line.If you want to break a line into two line just press CTRL+SHIFT+J.It's will break your line from where your cursor is present now.

10.The last but not the least you can define your shortcut keys,Just go to Setting>Shortcut Mapper and define your own keys.

I hope you are enjoying.These are  very basic things which will make your life little bit easier for sure and you will start saving your time once you are in practice of using these keys.

1 comment: