Skip to content

Instantly share code, notes, and snippets.

@Kimtaro
Kimtaro / [TextMate] Split Windows.scpt
Created March 9, 2016 09:25
Split windows in TextMate
set dock_position to do shell script "defaults read com.apple.dock orientation"
tell application "System Events" to tell process "Dock"
set dock_dimensions to size in list 1
set dock_width to item 1 of dock_dimensions
set dock_height to item 2 of dock_dimensions
end tell
tell application "Finder"
set the_bounds to bounds of window of desktop

To quickly and easily remove all unwanted comments when using Sublime text, perform a search and replace (CMD, ALT & D) and enter the following. Make sure that regex search is enabled by clicking the small icon in the bottom left that looks like an astrix.

For example, to remove all HTML comments:

(?s)<!--.*?-->

search and replace with blank

Or to remove all CSS comments: