Passa al contingut principal

Exclude Compressed CSS from Sublime Text 2 Projects

If you're using Sublime Text 2, you might have switch to it because it's Find in Project is super fast and nice. And if you're using Sublime Text 2, that means you're working locally on files, meaning there is a good chance you're using CSS preprocessors. If you're using CSS preprocessors, you probably compile CSS into a compressed style (non-relevant whitespace stripped) because that's best, speed wise, for live websites.


Now let's say you use Find in Project to find a class definition (e.g. ".sidebar-poll") that you need to edit. You'll probably find the .scss file or .less file or whatever, but you'll also find it in the compressed CSS, which is this giant one-line file and totally borks up your Find Results page.


Yeah, I don't really need to see that.

We can't blame Sublime Text 2 because 1) It's finding what you told it to find and 2) They provide a way to fix this if you don't want to see those Find results. To fix this:


1. Save your project


Open your project (drag folder of project onto Sublime Text 2 icon in dock). Then save it from the Project menu.




This is nice anyway, since you get a file (YOUR-PROJECT.sublime-project) that you can double-click to open it back to the state you left it in at any time.



2. Edit Project


Go to Project > Edit Project.



3. Add Exclude Pattern


Alter the JSON there include the folder_exclude-patterns of the folder where you keep your compressed CSS:



{
"folders":
[
{
"path": "/Users/chriscoyier/GitHub/whatever/",
"folder_exclude_patterns": ["css"]
}
]
}


Now that folder won't show up in the sidebar of your project, nor in the search results. Huzzah!


Note


This is for excluding folders on a per-project basis. If you always want to exclude a particular folder, you can change this exact same setting in Sublime Text 2 > Preferences > Settings - Default (or User).


Exclude Compressed CSS from Sublime Text 2 Projects is a post from CSS-Tricks






via CSS-Tricks http://css-tricks.com/exclude-compiled-css-from-sublime-text-2-projects/

Comentaris

Entrades populars d'aquest blog

10 alternativas a Cuevana para ver películas online

10 alternativas a Cuevana para ver películas online : Durante este último tiempo, en Cuevana se sucedieron varios “problemas” por los cuales hubo que ajustar algunas cosas antes de tiempo (como el rediseño del sitio), que dejaron a algunos usuarios ciertos problemas para acceder a las películas o series del portal. Pero realmente esto es algo que no incumbe a los usuarios y, como sabemos, existen muchas otras alternativas a Cuevana dando vueltas por Internet, que intentaremos presentar aquí mismo. Los sitios que repasaremos funcionan del mismo modo que Cuevana, mediante la instalación de un plugin que permite visualizar los videos de Megaupload o WUShare, entre otros servicios, en una calidad de imágen realmente excelente. Tal como sucede con el más popular servicio, todos ellos tienen publicidad que en algunos casos resulta insoportable, pero como dice Federico en DotPod “a caballo regalado no se le miran los dientes”. Alternativas a Cuevana 1. Moviezet Posiblemente el mejor clon d

Learn Composition from the Photography of Henri Cartier-Bresson

“Do you see it?” This question is a photographic mantra. Myron Barnstone , my mentor, repeats this question every day with the hopes that we do “see it.” This obvious question reminds me that even though I have seen Cartier-Bresson’s prints and read his books, there are major parts of his work which remain hidden from public view. Beneath the surface of perfectly timed snap shots is a design sensibility that is rarely challenged by contemporary photographers. Henri Cartier-Bresson. © Martine Franck Words To Know 1:1.5 Ratio: The 35mm negative measures 36mm x 24mm. Mathematically it can be reduced to a 3:2 ratio. Reduced even further it will be referred to as the 1:1.5 Ratio or the 1.5 Rectangle. Eyes: The frame of an image is created by two vertical lines and two horizontal lines. The intersection of these lines is called an eye. The four corners of a negative can be called the “eyes.” This is extremely important because the diagonals connecting these lines will form the breakdown

Más de 50 de las mejores herramientas online para profesores

No es una exageración afirmar que hay ciento de aplicaciones educativas por ahí por la red, para todos los gustos y de todos los colores, por lo que es difícil tratar de recogerlas todas en un listado. Sin embargo, algunas destacan más que otras por su innovación y por su capacidad para conseguir adeptos, y esas son las que protagonizan la presente recopilación. Son 50 interesantes herramientas online basadas en las recopilaciones de EduArea , las muchas ya tratadas en Wwwhat’s new y las destacadas por la experiencia. 1. Dropbox : Un disco duro virtual con varios GB gratuitos y al que se accede desde casi cualquier dispositivo. Sin embargo, es muchísimo más que eso, de hecho ya comentamos 20 razones . 2. Google Drive : La evolución de Google Docs que suma a sus múltiples herramientas de creación de documentos, un considerable espacio virtual gratuito. 3. CloudMagic : Una extensión y una app multidispositivo para buscar información simultáneamente en Gmail, Twitter, Facebook, Evernote