atom-editor

Can you open a Python shell in Atom editor?

一曲冷凌霜 提交于 2019-12-09 10:05:06
问题 You can open multiple tabs in the Atom editor, and have a multiple column layout as well. However, I am not being able to find out how to open a Python shell inside Atom so that I can load a Python script in the Python interactive shell. Does anyone know the steps to achieve this? 回答1: The script package is likely what you want, it allows you to test your code by running part or all of it at a time: You can install it by opening the settings view with Ctrl - , switching to the Install panel

How to add words to Atom's spell checker dictionary?

巧了我就是萌 提交于 2019-12-09 04:37:37
问题 Trying to get a bit more functionality out of Atom's spell checker and right now the false positives are making it less than useful. How can I add a word to Atom's dictionary so it no longer shows up as misspelled? 回答1: This feature was released in version 1.12 of Atom , implemented in Pull Request #120. To enable it, checkmark the option labeled Add Known Words , found in Packages -> Settings View -> Open , or shortcut Cmd + , . Then go to Packages tab and search for spell-check . Then, to

Atom 'autocomplete+' not working

强颜欢笑 提交于 2019-12-08 21:40:00
问题 So the autocomplete+ comes with Atom when you install it and is enabled by default. When I am writing code, nothing shows up, why? Is there any file I need to configure before it works properly? 回答1: In autocomplete-plus settings page there is option "File Blacklist": and by default there is all files back listed "*.*" so autocomplete works only in those files which have special addon installed I have put "*.none" and autocomplete started to work in all files for me 回答2: For atom-typescript

How can I get atom.io's “Go to Declaration” to really do that?

丶灬走出姿态 提交于 2019-12-08 14:28:03
问题 In atom.io, if I right click in "wrappedlabel" here: <label class="wrappedlabel">"Be Kind to Animammals - Kiss a Duckbilled Platypus Today"</label> ...it teases me with " Go to Declaration " Clicking does not take me to that class in the .css file in the project. Is there a way to get this to actually work? If so, it would be an even sweeter suite. Having it tell me "Go to Declaration" and then leaving me hanging is better than telling me to "go to" [somewhere else], but still... 回答1: "Go to

linter-flake8 and atom Windows 10 PATH to cmd.exe

痴心易碎 提交于 2019-12-08 14:07:29
Solved. See below. I'm fairly new to Python so please bear with me. Using atom and flake8 really appeals to me and a good way to point out my errors, and thus help me learn. The irony of this situation is that I've been able to be get flake8 and hydrogen running on Ubuntu 17.04, but Windows (supposedly more user friendly) is killing me! linter-flake8 always throws up a message about the PATH and CMD.exe. I think this is all fine, and Py2 and Py3 can both be called from anywhere in the CMD. I know that atom says I can specify the location of something to fix this (sorry, working from human

Atom menu is missing. How do I re-enable the tools-menu?

坚强是说给别人听的谎言 提交于 2019-12-08 06:33:45
问题 It is similar situation and similar to this question, but there are no solution for my specific problem. I used mu Atom editor for see Markdown text (preview), it was at a kind of "Tools menu"... Working fine last months. Now there are no tools-menu , and no alt+t or similar command to enable it... How to get back the tools-menu? Atom v1.18.0 working in UBUNTU 16 LTS. 回答1: Markdown preview is located under Menu Bar > Packages > Markdown Preview > Toggle Preview. You may also activate it with

linter-flake8 and atom Windows 10 PATH to cmd.exe

霸气de小男生 提交于 2019-12-08 05:13:41
问题 Solved. See below. I'm fairly new to Python so please bear with me. Using atom and flake8 really appeals to me and a good way to point out my errors, and thus help me learn. The irony of this situation is that I've been able to be get flake8 and hydrogen running on Ubuntu 17.04, but Windows (supposedly more user friendly) is killing me! linter-flake8 always throws up a message about the PATH and CMD.exe. I think this is all fine, and Py2 and Py3 can both be called from anywhere in the CMD. I

Use the tree-view in Atom editor init script

﹥>﹥吖頭↗ 提交于 2019-12-08 02:14:43
问题 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

ESlint - import.meta causes Fatal Parsing Error

非 Y 不嫁゛ 提交于 2019-12-07 23:17:12
问题 Using the Atom editor, with the linter-eslint package installed, I'm have a node.mjs script that uses ES6 module's import statement to import various node modules. The script runs fine when I run it with node's --experimental-modules flag. However, while editing with Atom, linter-eslint says: Parsing error: Unexpected token import (Fatal) This parsing error is NOT being caused by the ecmascript "import" statements that I have at the top of my code file. Instead, it is actually caused by the

Debugger doesn't pause at breakpoints

元气小坏坏 提交于 2019-12-07 12:18:38
问题 I'm having an issue was hoping I could get some help with configuring Atom and Xdebug. I can set breakpoints and they show up in the breakpoint panel, but the process never pauses. Oddly, the process does pause on a exception warning, so I know it's connecting somewhat, but just not pausing at breakpoints. My php.ini is as described in the readme: xdebug.remote_enable=1 xdebug.remote_host=127.0.0.1 xdebug.remote_connect_back=1 # Not safe for production servers xdebug.remote_port=9000 xdebug