atom-editor

What's wrong with my Atom Editor Snippet?

南笙酒味 提交于 2019-12-11 10:12:38
问题 I'm getting to know Atom. I tried to make a snippet with the following format: 'text.html.basic': 'Comment Class': 'prefix': '<.' 'body': '<!-- .$1 -->' But when I type <. then the tab key, nothing happens. Why not? 回答1: Atom currently only supports alphanumeric characters for snippet prefixes, see the open issue at https://github.com/atom/autocomplete-snippets/issues/56 Try using a prefix such as "comment" and it should work. I unfortunately don't know a better workaround. 来源: https:/

Spaces in Mermaid

泄露秘密 提交于 2019-12-11 07:53:59
问题 I have a .md file saved and I am viewing it using Atom and the Mermaid Preview package. I am going off the example on their GitHub page: graph TD; A-->B; A-->C; B-->D; C-->D; That renders fine, but how do I add spaces the text? For example: graph TD; A F-->B; A-->C; B-->D; C-->D; The previewer goes blank when I put spaces in. I tried adding quotations, but that did not help. 回答1: Try this (haven't tried it in Atom but it worked fine in VisualStudio Code with Mermaid Plugin): graph TD; id1[A F

Why can't Atom find these newlines?

大城市里の小女人 提交于 2019-12-11 07:39:09
问题 I'm trying to clean up a bunch of .vcf files that have line breaks in them and having trouble getting Atom to find the line breaks. Usually either \r , \n or \r\n will work if "regex" is selected but in this case it isn't finding blank lines at all. Here's a selection: BEGIN:VCARD VERSION:3.0 X-UNKNOWN-ELEMENT;TYPE=objectclass:top X-UNKNOWN-ELEMENT;TYPE=objectclass:person X-UNKNOWN-ELEMENT;TYPE=objectclass:organizationalPerson X-UNKNOWN-ELEMENT;TYPE=objectclass:inetOrgPerson X-UNKNOWN-ELEMENT

Importing matplotlib.pyplot in atom editor

本秂侑毒 提交于 2019-12-11 07:27:09
问题 I am using pyzo to run my python scripts. However I felt the need to switch over to the Atom code editor. I can run my python scripts without any problem. At one point I need to use the library matplotlib . In pyzo I would do: import matplotlib.pyplot as plt But it doesn't work in Atom Error message: Traceback (most recent call last): File "C:\Users\ivanl\Desktop\python trade\matplotlib.py", line 1, in import matplotlib.pyplot as plt File "C:\Users\ivanl\Desktop\python trade\matplotlib.py",

How to integrate python3-flake8 with Atom in Ubuntu 16.04

为君一笑 提交于 2019-12-11 04:33:42
问题 I installed python3-flake8 on Ubuntu 16.04 with the command sudo apt-get install python3-flake8 Then proceeded to install the flake8 linter package on Atom. However on restart it shows the following error Error: spawn flake8 ENOENT . I do not know if atom is able to detect flake8 on my system or if it is some other kind of problem. Error message: Error: spawn flake8 ENOENT at exports._errnoException (util.js:890:11) at Process.ChildProcess._handle.onexit (internal/child_process.js:182:32) at

Using a local editor with Vagrant

怎甘沉沦 提交于 2019-12-11 03:56:24
问题 I typically use the atom editor for any coding work and have folders on my computer with the code. After doing some updates on my Mac OS computer, some ruby gems stopped worked, rvm no longer responded and homebrew gave me a ton of trouble. I want to prevent this from happening again and figured I'd use Vagrant instead. I like it so far and it works fine, however I want to use my Atom editor nevertheless. Normally I work on projects using gulp or grunt and they compile the files whenever any

How to change new line indentation in atom editor?

回眸只為那壹抹淺笑 提交于 2019-12-11 01:24:30
问题 I'm trying to configure my Atom editor in a way that after I click Enter, the new line starts with an indentation of 4 spaces, and not with a single Tab as it is configured by default. Thanks. 回答1: Go to settings . Go to Editor sidebar item Make sure Soft Tabs is checked Below, set TabType to "auto" Set Tab Length (a tab is normally 4 spaces) 来源: https://stackoverflow.com/questions/34594294/how-to-change-new-line-indentation-in-atom-editor

Github atom editor shows line deleted and added back

北城余情 提交于 2019-12-10 17:12:38
问题 I am using Github's atom text editor. Most of the times, when I modify a single line in a file, git diff shows a lot of lines as deleted and added back in this way - @op_contact = "Not Available" + @op_contact = "Not Available" This causes inconvenience in code-reviews and hence I am forced to use other editors like SublimeText. It looks like some simple setting should fix this, but I am not sure how to do it and I don't know what to search for. There are some related questions, like this one

How to change console font size in console in ATOM abbrev@1.0.7

时间秒杀一切 提交于 2019-12-10 16:30:34
问题 I am using ATOM for all my scripting. There is a package named "Script" where you can run your script from within ATOM by pressing Shift+Ctrl+Space. The command opens a console box at the bottom and shows you the script output. Does anyone know how to change the fontsize 回答1: You can edit your stylesheet : Edit -> Preferences -> Themes And in your stylesheet write: .script-view .line { font-size: 14px; } Then save it and reboot Atom 回答2: Adding .atom-runner pre { font-size: 1.2em; font-weight