atom-editor

Atom data-grammar syntax for keybindings

十年热恋 提交于 2019-12-07 10:46:37
问题 Can someone give a full explanation of the syntax for Atom's data-grammar attribute (used in keybinding selectors)? For instance, what is the difference between [data-grammar='source example'] and [data-grammar~='source example'] ? Also, how do you specify multiple grammars? For instance, how would you specify that a key binding should be limited to html or xml formats? If there already exists documentation on this somewhere, I have not yet found it, but would appreciate being pointed to it.

Install Kite plugin in GitHub's Atom Editor

北慕城南 提交于 2019-12-07 04:44:34
问题 I would like to try Kite, which is concept of artificial intelligence helping developers with hints about useful functions or expressions that he or she is currently writing. I have downloaded the Kite Atom plugin from GitHub. However, as I am new to GitHub's Atom Editor I don't know how to install this plugin into editor. 回答1: As this plugin isn't available from the Atom Package Manager repository you will need to link this manually: Clone the Repository. Change to the plugins\atom directory

Atom Editor Golang - Go To Declaration not working

 ̄綄美尐妖づ 提交于 2019-12-06 22:43:18
问题 I've done a fresh install of atom and installed go-plus package. The one feature I can't get working is the "Go To Declaration" which is why I'm still stuck in sublime land... Does anyone know if this works with golang? I't appears that I need to have ctags for my project? Whats the best way to get this going for atom? I've tried installing other packages that geverate the ctags but I don't think that helped. Has anyone got this working? What did you do? 回答1: Fresh install of Atom 1.3.3 with

Is it possible to use different themes based on file type?

自作多情 提交于 2019-12-06 22:40:12
问题 Is it possible to have themes run based on the type of document? For example, I'd like to have one theme for .js, .html, another for .md files. 回答1: This is no longer the correct answer, please see the other answer for a package that allows you to do what the question asked. I tried to delete this answer, but can‘t do it, since it‘s the accepted answer at the moment. No, this is currently not possible. Atom uses two themes: The UI Theme determines the overall layout of the editor, including

XDebug does not break on breakpoints from atom's php-debug package

…衆ロ難τιáo~ 提交于 2019-12-06 22:08:18
问题 My problem is one I found many other answers too but none worked for me. The code and "server" are both localhost. Edit : tried using port 9001 instead as suggested in some answers + tried if Visual Studio Code worked, but the strange thing is: it breaks on exceptions in VS Code but still not on breakpoints. The connection seems to work: My setup Software Windows 10 Pro x64 MAMP (non pro) running port 81 atom php-debug package xdebug-2.4.1-7.0-vc14.dll extention the code to be debugged is

how to sync Packages and settings for multiple computer in Github Atom Editor

假装没事ソ 提交于 2019-12-06 18:40:50
问题 I have installed Github Atom Editor in my Personal PC and Office PC. I want to sync the settings and packages to my dropbox account so when i log in the office PC it automatically download or update all the packages and settings to my Home PC 回答1: Have you tried to use Atom Sync Settings instead? It does the job for me. 回答2: If you don't absolutely need Dropbox, atom-package-sync is a package that I created a couple weeks ago. It works a little bit like the synchronization of Google Chrome,

Use the tree-view in Atom editor init script

不想你离开。 提交于 2019-12-06 09:44:08
I'm trying to write a init script for the Atom editor to add a custom command to be able to reveal the currently opened editor file in the tree-view with one key combination, instead of two. Here is an example code (which makes something different) to make clear how it generally has to look like. atom.commands.add 'atom-editor', 'custom:cut-line', -> editor = atom.workspace.getActiveEditor() editor.selectLine() editor.cutSelectedText() The two commands I need should not be sent to the editor , but to the tree-view . Here are the two commands: tree-view:toggle-focus tree-view:reveal-active-file

How to setup Atom's 'styles.less' file to highlight function and method call in Python?

我怕爱的太早我们不能终老 提交于 2019-12-06 05:08:57
问题 I would like to have it highlighted like here in Sublime Text: I tried like suggested here: atom-text-editor, atom-text-editor::shadow { .meta.function-call.python { color: '#abcde'; } } However, Atom's deprecation says: Starting from Atom v1.13.0, the contents of atom-text-editor elements are no longer encapsulated within a shadow DOM boundary. This means you should stop using :host and ::shadow pseudo-selectors, and prepend all your syntax selectors with syntax-- . To prevent breakage with

Why can't Python run in Atom?

强颜欢笑 提交于 2019-12-06 04:45:02
问题 I've researched this on different places, including stackoverflow, and I can't find an answer that helps me. I'm using Windows 7, 64 bit, with Atom for 64 bit Windows. I have Python 3.6.1 installed in the directory C:\Users\Austin\Documents\Python. When I try to run a simple script to test Python in Atom, it says 'python' is not recognized as an internal or external command, operable program or batch file. [Finished in 0.083s] I tried to run the same script in the command line, and it said

Changing cursor style of atom editor

Deadly 提交于 2019-12-06 04:01:12
Hello is there a way to change the caret style of atom just like in sublime text 3? The way sublime text 3 did it was this way in the settings JSON "caret_style": "phase" Is there a way to do something just like this in atom editor? Edit .atom/styles.less (or ~/.atom/stylesheet.css ), add/update the following transition to atom-text-editor .cursor : atom-text-editor .cursor { transition:opacity 0.5s linear; } If you want to update cursor speed, you can get cursor-blink-interval package and update the following in your .atom/config.cson : '*': 'cursor-blink-interval': cursorBlinkInterval: 1200