Where is the atom style sheet in directory? - atom-editor

I'm trying to add some modifications to my Atom style sheet, but I can't find where Atom is installed. I'm using ubuntu 16. Thanks in advance

Atom's menu bar -> Edit -> Stylesheet ...

styles.less should be in the ~/.atom directory, as well as Atom packages, the Keymap and other configuration files. The binary files for Atom should be in /usr/bin/ however.

Related

Vim claims Eclim’s ProjectCreate is not an editor command

I followed eclim’s installation instructions, but when getting started I can’t even create a project :
:ProjectCreate /path/to/project
E492: Not an editor command: ProjectCreate
What’s wrong ?
Did you use the eclim installer suggestion to install vimfiles in ~/.vim/bundle/eclim ? By default (at least on Debian) vim won’t look into this directory. You have to move eclim’s vimfiles (directories eclim and plugins) directly into ~/.vim/ (merge plugins if it already exists).
Alternatively, I didn’t test it but the "build from source" tutorial suggests to
create a user.properties file at the eclim source root and put all your properties in there:
$ vim user.properties
eclipse.home=/opt/eclipse
eclipse.local=${user.home}/.eclipse/org.eclipse.platform_<version>
vim.files=${user.home}/.vim/bundle/eclim

Where to config chromium options in atom editor

Due to an high dpi screen, I have to start atom with the following command to avoid blurred fonts:
atom --force-device-scale-factor=1 .
I can add the option to my desktop starters and I can define an alias for the shell. Out of curiosity, I'd like to add this configuration to the atom editor. As a result of some searching, I found the following solution for electron:
app.commandLine.appendSwitch "js-flags", "--harmony_proxies"
It should be in some sort of init script. But where would I add a line like this in the atom editor?
You could add it to
Setting -> Open Config Folder -> config.cson

Disable atom opening previous files when running atom . command inside a directory

I frequently dislike how atom by default will open files I was previously working on when I run atom . inside of a project directory. How can I get atom to open with a blank editor with the file tree on the side and that's it?
You can disable this feature by appending restorePreviousWindowsOnStart: false line to your Atom config file which is opened by Edit/Config... menu item.
See here https://github.com/atom/atom/pull/11324 for more details.
Short answer is you cant
Currently the behavior is automatic with no setting. Until that changes, you can open atom via the icon and then open the folder you want from the file menu.

How to add Compass syntax support to Jetbrains PhpStorm?

I'm using JetBrains PhpStorm, which is probably the most epic IDE I've ever used.
The question is simple. How do I add Compass syntax support to it? I've got it installed, it renders and works, but PhpStorm still complains about undefined imports and mixins.
How can I resolve this? Can Compass be included as an external library?
Edit: I'd just like to note that this feature request is for the RubyMine IDE (also by JetBrains), it's not for PhpStorm/WebStorm.
It's explanation of Martin's answer.
Symlink to compass gem directory in your sass folder works great.
Instruction(Windows)
open cmd with admin privileges
change path to your project sass folder, for example cd projectname\sass
run mklink /d compass $GEM_LOCATION\frameworks\compass\stylesheets\compass, as for me $GEM_LOCATION = C:\dev\Ruby200\lib\ruby\gems\2.0.0\gems\compass-0.12.2
Thats all, now PhpStorm will not highlight compass mixins as errors, and will add them in autocomplete suggestions.
Warning: If you want to delete created symlink DON'T use delete, it will remove source directory.
open cmd with admin privileges, cd $yourProjectSassPath, and run rmdir compass
As the above user mentioned it also works to add the path to the Compass stylesheets as a resource directory in your project.
For example, my compass stylesheets are located at:
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/compass-0.12.2/frameworks/compass/stylesheets
Go to Settings > Project settings > Directories.
Add a content root
Add the compass stylesheets directory
Click 'Resource Root' (the blue icon)
When you apply you will see that PhpStorm finds the compass stylesheets without any problems. You can even ctrl+click (windows) on them to open them directly.
Good luck!
I solved it by placing a symlink of the compass-directory (from $GEM_LOCATION/frameworks/compass/stylesheets/compass) into the folder where my stylesheet lives. It's more of a workaround but it makes me and the phpstorm-inspections/-autocompletion happy.
I think it's better to add the directory in the Directories settings: http://www.jetbrains.com/phpstorm/webhelp/directories.html
In the example above, add a new content root of C:\dev\Ruby200\lib\ruby\gems\2.0.0\gems\compass-0.12.2.
This is more easily fixed by using a better source for the executable.
From: http://youtrack.jetbrains.com/issue/WEB-9139
In Windows, use an executable path like:
C:\Ruby200\lib\ruby\gems\2.0.0\gems\compass-0.12.2\bin\compass
While on the Mac use something like:
/Library/Ruby/Gems/2.0.0/gems/compass-0.12.2/bin/compass

How do you add syntax highlighting for Less in Notepad++?

I want Notepad++ to treat my .less files just as my .css files and thereby get syntax highlighting for any .less files I open.
To get LESS syntax highlighting, you have to download and import a user defined language file. Here are some links to language files:
LESS language file, as listed in the Notepad++ User Defined Language List
LESS language file on GitHub
Installation instructions from the GitHub repository:
Download the less.xml file
Open Notepad++
Go to Language -> Define your language..., click on Import... and select the less.xml file you've downloaded
Close and restart Notepad++
Done
Another way to install language files is to copy them into a file in the Notepad++ installation directory.
Download from this page the XML file of the language to add (such as Less)
In Notepad++ open Language menu > Define your language... and Import the file

Resources