Ever find you can't use "Edit>Go To" in Notepad? Turn off wrapping
Note: This blog post is from 2008. Some content may be outdated--though not necessarily. Same with links and subsequent comments from myself or others. Corrections are welcome, in the comments. And I may revise the content as necessary.Just a quick tip for some readers: if you find yourself using the built-in Windows NotePad editor, you may want to use the Edit>Go To command to jump to a line. But sometimes it's greyed out. What gives?
Turns out it's pretty simple: just turn off wrapping (Format>Word Wrap). Doh! I've missed it for years, so am passing it along.
I know some will want to jump in and say "why are you using NotePad anyway?" Please save the smart remarks (and let's see if someone skips reading this and comments anyway).
I'm well aware of the many alternative text editors, as well as alternative file viewers (two of over 100 categories in my CF411 list).
But there are times when one may find themselves working on a Windows server where perhaps they're not free to install an alternative editor, or perhaps they just need to view/edit one file quickly so don't want to bother.
For those folks, I hope the tip above may help.
For more content like this from Charlie Arehart:Need more help with problems?
- Signup to get his blog posts by email:
- Follow his blog RSS feed
- View the rest of his blog posts
- View his blog posts on the Adobe CF portal
- If you may prefer direct help, rather than digging around here/elsewhere or via comments, he can help via his online consulting services
- See that page for more on how he can help a) over the web, safely and securely, b) usually very quickly, c) teaching you along the way, and d) with satisfaction guaranteed
@Duncan, thanks for that. No one else had noticed, and I didn't either, until I visited the site and saw that it was making the page render just a little funny. Got it sorted. (While BlogCFC does translate html character entities in the body of a post, it just didn't do it for the blog title, at least in the old version 5.005 version I still run.)
I thought it was one of those things Windows implements to torture us..., just like "You could do it but no more now !"
It's shocking how many warts are in Notepad (like it still forcing saving and opening of txt files by default, and having no "recent files" list, and not being able to recognize linux CRLF codes, all of which Wordpad has been able to do for years!)
Anyway thanks for letting me know...
Notepad is very fast to use just to open simple text file. G/VIM is better if I need bigger txt based file. well...
The first few are handled by even lowly WordPad:
- Notepad still defaults to saving as txt extension. Same with its open file dialog
- it still offers no "recent files" menu option
- it still can't handle rendering Linux line-end chars (which can occur even in files on Windows, such as Java config files, xml files)
Then there things that other editors running on Windows (even free ones) have done for years:
- Notepad is still slow to load files of more than just a few megs
- It still has no option to show line numbers
- It's still not a multi-document interface (mdi) offering tabbed display for more than one file
- It still can't handle when a user can't save a file due to permissions, offering an option to re-launch itself as admin
I'm sure there are still more things that even I hit, let alone that others might think of.
And again, some will say "if you want a better editor, just get one of the many free alternatives". The problem is that there can be many reasons it may not be trivial or even possible to add third-party software, especially on servers or in some orgs (whether security, conformance, disabled net access, and more).
So it would be nice if MS would throw us all a bone and add just these few things above in lowly Notepad. I hit them daily in my remote server troubleshooting consulting with folks, and of course those folks hit them on their servers.
This is NOT about "making Notepad into an IDE" nor should it "bloat it" to taking "many more megs"...and seriously, what modern machine doesn't regard megs (of disk or ram) as like pennies? Sadly, I doubt anyone from MS will see this, and if they did I doubt this will change. It's like someone has "put Baby in a corner", to quote the old movie line.
Until things change, I load Notepad++ on every machine (servers and workstations/laptops), to help manage logs, config files, light editing, etc. There are still others, and I understand that most developers will lean toward their favored IDE...these days VSCode for most. Again, the power it offers by way of "all its available extensions" is rather more a negative for a "simple server editor".
So again for "light housework", we can expect more out of lowly Notepad, especially for those who can't load a better editor--and shouldn't need to for such basic operations.
Anyway NPP/Notepad++ is good, also you can try Notepad2, I use it on some ocassion if the windows machine really ancient like some use Win 2000 or XP (some client with multi vendor still use decades old machine, well..)