atom-editor

Syntax Highlighting Guide for Atom

微笑、不失礼 提交于 2019-12-17 22:14:22
问题 I am very pleased with the new editor by Github. Unfortunately it isn't exactly easy to customize it. I wanted to create my own Syntax Highlighting Theme, because I am not happy with the ones available to download (at least they don't seem to do well with Java) Now the files (syntax-variables, color.less, etc.) to style seem to be in: ~/.atom/ .../packages (if you want to change existing themes) The problem is just that I don't know which (CSS) classes style which elements of the syntax. Is

Debug PHP in Atom While Using Vagrant

若如初见. 提交于 2019-12-13 15:38:15
问题 My PHP dev environment is running on a VirtualBox VM and is provisioned via vagrant. How can I use php-debug in Atom on my host machine to debug PHP scripts running on one of my VMs? 回答1: Configure xdebug: Open your php.ini file on your VM and look for the xdebug settings and make sure that you have the following values: xdebug.remote_autostart=1 xdebug.remote_connect_back=0 xdebug.remote_mode=req xdebug.remote_log=/tmp/xdebug.log xdebug.remote_host=10.0.2.2 xdebug.remote_port=9999 Note: you

How do I change MinGW's compiled exe location while using gpp-compiler in the Atom IDE?

时光怂恿深爱的人放手 提交于 2019-12-13 09:52:35
问题 MinGW normally when used through the command line spits out the compiled exe of the program in the current working directory, but when used through the gpp-compiler package by kriscross07 in Atom, the exe ends up in a temp folder. I would like it to place the exe in the folder of the source files the same way MinGW would normally. This is both so I can find it easier and so that my antivirus doesn't have a heart attack every time it sees me run an exe from the temp folder. I'm using the

Atom Editor - Body Keybind for Everything Except Vim Mode Insert

无人久伴 提交于 2019-12-13 04:00:00
问题 I am an avid Vim user who recently decided to give Atom a try. In vim I map ,bn & ,bp to next buffer and previous buffer, respectively. I am trying to imitate the same behavior in Atom for switching between tabs. In my keymap.cson file I have the following: 'body': ', b n': 'pane:show-next-item' ', b p': 'pane:show-previous-item' This will work except if I try to type just the ',' character in Vim mode insert it will not display unless I hit ',' twice. I thought maybe the following would work

Change atom-text-editor pane scrollbar colours

不羁岁月 提交于 2019-12-13 01:28:45
问题 I have just switched to atom from sublime text and tried to apply my usual themes. Unluckily the theme that I use (spacegray eighties sublime port) does not incorporate the correct theme for the scrollbars. I managed to fix the look of the scrollbars in the tree-view panel. However, I cannot apply the same to the atom-text-editor for some reason. My styles.less is the following: atom-text-editor { // Apply same scrollbar color fix. } // Scrollbar color fix for SpaceGray ::-webkit-scrollbar {

node executable could not be found in atom with node-debugger pkg

旧街凉风 提交于 2019-12-12 23:47:50
问题 When I press F5 to start debugging, the below error happens Failed to start debugger. Exit code was ENOENT which indicates that the node executable could not be found. Try specifying an explicit path in your atom config file using the node-debugger.nodePath configuration setting. I tried to add some configuration like below, but it does not work. I am not sure I added it properly. vim ~/.atom/config.cson "node-debugger": nodePath: "/usr/bin/node" Could you help me? Thank you in advance. 回答1:

Lookbehind assertion regex in atom editor

核能气质少年 提交于 2019-12-12 13:33:36
问题 I try to use a lookbehind assertion in the atom editor. My text is the following: <stop color="rgb(0,0,153)" value = "0.13"/> <stop color="rgb(0,0,180)" value = "0.17"/> <stop color="rgb(0,0,223)" value = "0.25"/> I can do a lookahead assertion with .*(?=color\=) . It selects everything before "color=". But if I try the lookbehind assertion .*(?<=color\=) atom tells me "Invalid regular expression". It seems that atom does not recognize < or > as special character, because it shows it the same

Where should the file user.clj go?

蹲街弑〆低调 提交于 2019-12-12 11:20:50
问题 I am trying to setup proto-repl atom-editor package and apparently it needs a file user.clj to exist somewhere - which I guess is some leiningen's init file. Where should I create this file? 回答1: Clojure will load the file user.clj from your class path if it is found. In a default leinengen project src/ will be on the class path, so if you create src/user.clj the contents of that file will be loaded in the context of the user namespace. user is the default namespace for the clojure repl, but

Git commit not working with Atom on Mac

徘徊边缘 提交于 2019-12-12 06:13:07
问题 I installed git on my mac and now I started using it from my terminal. I also configured it this way git config --global core.editor "atom --wait" but when i use git commit this is what I get atom --wait: atom: command not found error: There was a problem with the editor 'atom --wait'. Please supply the message using either -m or -F option. and now I don't know how to proceed. Can someone help? 回答1: I think you should use the full path to atom. 来源: https://stackoverflow.com/questions/44782004

SublimeText - Highlight/Fade file names from sidebar

筅森魡賤 提交于 2019-12-12 05:39:46
问题 Is there a way I can fade file names (not hide them) from the sidebar based on .gitignore and highlight file names if they've been modified or changed? Something like Atom git integration: If the package doesn't already exist, would appreciate if someone could point me in the right direction on building it myself. 回答1: Unfortunately ST currently doesn't offer the functionality to style the filenames in the sidebar, you will need to wait for this feature to be implemented in a future version