Posts

Showing posts with the label Atom

Search for inline css in html file with atom using regex

In Atom or any text editor that supports regex search, you can use this to search for the inline css styles in a HTML file: style='[^']*' or double quote: style="[^"]*" Awesome!

Change Atom's title bar text using custom-title plugin

Image
To modify the Atom's title bar text with your own pattern, you can use this plugin: custom-title In Atom, go to Settings >> Install >> type custom-title in the search bar and install the package. After you have installed custom-title successfully, go to Settings >> Packages >> click custom-title's Settings button and change the title pattern to whatever you want using its provided syntax. For example, I want the title bar display full file's path, I will use this following template: <%= filePath %>

Toggle Find-and-Replace panel in Atom editor

To be able to toggle Find-and-Replace panel in Atom (v0.182.0), add this following lines to your keymap.cson: '.platform-win32, .platform-linux':   'ctrl-f': 'find-and-replace:toggle'   'ctrl-shift-f': 'project-find:toggle'

To make Atom remember your last session

To enable Atom to remember your last session whenever you re-open it, install this plugin Github repo:  https://github.com/mpeterson2/save-session >> Edit >> Preferences >> Install >> search for "save-session", install. Close Atom, and reopen it to see the magic.

Hide TreeView in Atom by default

To stop Atom keeps showing TreeView whenever you open the editor: >> Edit >> Open Your Init Script >> Old way: atom.workspaceView.trigger 'tree-view:toggle' New way (Atom v0.181.0): atom.commands.dispatch atom.views.getView(atom.workspace), 'tree-view:toggle' Save!

Show invisible characters in Atom editor except EOL and CR

In Atom editor to show invisible characters (tab, space) except the EOL and CR: >> Edit >> Open Your Config add the following: "*":   editor:     invisibles:         'cr': ''         'eol': ''         'space': '·'         'tab': '⇥'     showIndentGuide: true     showInvisibles: true ... Save and enjoy!