atom-editor

Regular expression search avoid nested results

耗尽温柔 提交于 2019-12-10 15:23:04
问题 My document contains several instance of code blocks looking like: {% highlight %} //some code {% endhighlight %} In Atom.io, I am trying to write a regex search to capture those. My first try was: {% highlight .* %}([\S\s]+){% endhighlight %} The problem is because there are several code blocks in the same document, it also catches the first code block until the last one, all in one match. I though to exclude the { character: {% highlight .* %}([^\{]+){% endhighlight %} But the problem is

TypeScript/TSLint: TSLint not recognizing root-relative imports, via baseUrl

孤人 提交于 2019-12-10 15:09:04
问题 I'm using root-relative imports via the baseUrl compiler option in tsconfig.json , as per this solution, but I'm having a problem where Atom IDE is showing me linting errors that look like: Cannot find module 'core/nav-menu/nav-menu.component'. The imports look like (in src/app/core/nav-menu.module.ts ): import { NavMenuComponent } from 'core/nav-menu/nav-menu.component'; TSLint in Atom isn't finding the root-relative imported files, but the Angular compiler isn't having a problem with them.

Atom IDE autocomplete-python not working

纵饮孤独 提交于 2019-12-10 13:47:03
问题 I have just installed the Atom IDE and the package autocomplete-python (on Windows). But the package is not working. Do I have to make any setting changes? (I have disabled autocomplete-plus and autocomplete-snippets). Do I need to separately install Jedi? 回答1: It worked when I enabled autocomplete-plus. It seems autocomplete-plus is required for autocomplete-python to work. (I had initially followed a youtube video in which autocomplete-plus and -snippets were disabled and then autocomplete

Atom HTML syntax highlight in template literals (for angular2)

梦想的初衷 提交于 2019-12-10 12:35:12
问题 How can I get HTML syntax highlight in template literals? Something like this which I've wrote for sublime before: Here is sublime version https://github.com/Microsoft/TypeScript-Sublime-Plugin/pull/189/files How can I write the same thing for Atom? 回答1: I was able to achieve this, here is the gist for ts.cson file. form atom typescript plugin on my system: /Users/amin/.atom/packages/atom-typescript/grammars/ts.cson https://gist.github.com/aminroosta/509476f48f05f4b56db2c0748fedc8fd This is

RSpec - invalid space character causes undefined method ` should'?

↘锁芯ラ 提交于 2019-12-10 11:54:56
问题 I sporadically get an really annoying error when writing specs in RubyMine & Atom where it seems like there is an invalid space character so ruby evaluates the first (blank) character as a part of the method name. 1) Activity Failure/Error: it { should belong_to :micropost } NoMethodError: undefined method ` should' for #<RSpec::ExampleGroups::Activity:0x007fd00e41bd20> # ./spec/models/activity_spec.rb:5:in `block (2 levels) in <top (required)>' Note the space in front of ' should' in the

Atom Editor: Hashtag creates brackets - JavaScript editing

吃可爱长大的小学妹 提交于 2019-12-10 11:36:29
问题 I must have accidentally toggled an option. If I type a hashtag # inside of quotes, atom automatically appends {} . Example: Type = what I type Atom = what Atom actually does Type: " Atom: "" Type: # EXPECTED: "#" Atom: "#{}" 回答1: This is a known issue that will hopefully get a fix in one of the next releases. As a workaround, you can disable the new Tree Sitter Parser in the Atom Core Settings: Keep in mind that Tree Sitter is the next generation parser for Atom, so once the issue has been

Changing cursor style of atom editor

让人想犯罪 __ 提交于 2019-12-10 09:45:50
问题 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? 回答1: 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

How to change keybindings of atom

末鹿安然 提交于 2019-12-10 03:18:59
问题 I am looking to change keybindings of Atom text editor. I do use Android Studio to code Android application. I want to have similar kinda shortcut for shortcut functionality. Does Atom allow us to customize key bindings? 回答1: You have to go to Edit -> Preferences -> Keybinding. In this tab you can see your actual binding and if you want to change it, you can access to the keymap file and overcharged configuration. To access this file you can click on the link below the "Keybindings" title.

Open Atom editor from git shell

。_饼干妹妹 提交于 2019-12-10 00:45:57
问题 i am using a win 8-X64 machine, with a 1.8 GHZ processor core i5, i have both the atom editor and git bash installed on this machine, is there any process by which i can start atom text editor from the Git bash shell or vice versa. 回答1: If you want to associate atom with all git operations, run: git config --global core.editor "atom --wait" If you just want to edit files, add an alias in git: git config --global alias.edit "! atom" and now you can edit any file by calling: git edit [filename]

Atom linter-flake8 failed to spawn (not in PATH)

丶灬走出姿态 提交于 2019-12-09 19:31:22
问题 i installed linter-flake8 package in Atom . I got this error : [Linter] Error running Flake8 Error: Failed to spawn command flake8 . Make sure flake8 is installed and on your PATH i'm sure flake8 is in the PATH . Have a look at the image i attach. I try to input the executable path to the flake8 setting but still doesn't work. I use windows 10 and i have python 2.7 and 3.5 installed . The 2.7 is installed in C:/python27, while 35 is installed in user/local folder (see attachment). Found