atom-editor

Atom Editor: RegEx replace to uppercase/lowercase

折月煮酒 提交于 2020-04-29 07:15:52
问题 I'm trying to replace some characters in a string with their uppercase/lowercase equivalents in Atom Editor. Let’s say I have the string: some:test:sequence and want the result: Some:Test:Sequence I’m aware of things like \u$1 and \l$1 , but they do not work in Atom, as Atom is using JS-style RegEx. The JS-RegEx solutions I found, however, always involve calling a function (see example here), which is not possible in Atom, afaik. Does anyone know if there is a way to achieve this? I also don

Reasoning to use (or not use) conda in conjunction with atom

为君一笑 提交于 2020-04-16 03:29:05
问题 I am new to using python and am still fuzzy in terms of how python 'works' in conjunction with different things you can use to use python. Specifically: I've been working with Anaconda and Python 3 and doing things in Jupyter, but a friend introduced me to Atom which I find much more appealing and would like to start using. I don't think I will use Hydrogen, I just want to use Atom as an editor and then execute the .py files via terminal in Atom. (I have a Mac, if this makes any difference).

How to enable atom.io to read STDIN?

ぃ、小莉子 提交于 2020-04-13 10:35:13
问题 Is there an easy way to pipe content to the editor atom? For example: echo "Content." | atom Unfortunately atom does not get the content. The current version of gedit has the parameter - to enable reading of STDIN: echo "Content." | gedit - I could not find a similar option in the atom-help ( atom -h ) 回答1: Thank you for asking about this! I just now bumped into the same issue. Is there an easy way to pipe content to the editor atom? The current atom command-line interface (CLI) will not open

Error: /c/Users/USER/AppData/Local/atom/bin/../app-1.36.1/resources/cli/atom.sh: line 23: cmd.exe: command not found

别等时光非礼了梦想. 提交于 2020-03-20 12:35:52
问题 I'm using windows 64-bit machine and trying to open Atom editor through git bash. Previously I have added the environment variable as follows, Then I have tried $ atom command in my git bash and following error occurs, /c/Users/USER/AppData/Local/atom/bin/../app-1.36.1/resources/cli/atom.sh: line 23: cmd.exe: command not found Please, can anyone help me with this? PS: Atom version is 1.36.1 回答1: This is illustrated by atom/atom issue 17034: It looks like you've modified your $PATH to remove

How to run a python program in Windows 10 command prompt

∥☆過路亽.° 提交于 2020-03-15 05:46:27
问题 I am getting as such error for executing my hello world program: "This file does not have a program associated with it for performing this action" 回答1: 1) Download the official version of Python 2) Use custom installation following the screenshots bellow. 3) Run your hello.py file directly from the command line by typing hello.py Screenshots #1 Screenshots #2 Screenshots #3 I have this python code that I'm running on just by typing Q60471933.py from datetime import datetime print("\nHello

How to Enable Syntax Highlighting for Python in ATOM

天大地大妈咪最大 提交于 2020-02-05 05:01:07
问题 I'm using Python 3.7, and our class has transitioned to ATOM Editor for our IDE. The Professor is running Ubuntu and his works, and a few people have had there's sporadically work but I'm unable to get any syntax highlighting or error pop-ups (Even if I make obvious errors) 回答1: To enable syntax highlighting you need to have the 'language-python' package from here. Then make sure the file you are editing ends in '.py'. If these two steps have been followed the syntax highlighting should be in

Definition for rule 'react/require-extension' was not found

不想你离开。 提交于 2020-02-04 08:42:13
问题 I have started to use Atom to work react-native.When I open index.js from Atom.I am getting error such as "definition for rule 'react/require-extension' was not found" top of the code line.I think ,ıt couldn't import @format . I don't know exactly. I am newbie at react.Any experience about this trouble or any advise ? enter image description here enter image description here 回答1: If you are using eslint for your ReactNative project then edit your .eslintrc file and add this snip of code

Definition for rule 'react/require-extension' was not found

帅比萌擦擦* 提交于 2020-02-04 08:42:00
问题 I have started to use Atom to work react-native.When I open index.js from Atom.I am getting error such as "definition for rule 'react/require-extension' was not found" top of the code line.I think ,ıt couldn't import @format . I don't know exactly. I am newbie at react.Any experience about this trouble or any advise ? enter image description here enter image description here 回答1: If you are using eslint for your ReactNative project then edit your .eslintrc file and add this snip of code

ES6: What does “import $ from 'jquery'” really means?

喜夏-厌秋 提交于 2020-02-03 10:04:47
问题 I assumed at first that it simply means, load the jQuery module and initialize it in a variable called $. But then, by using Atom with the atom-typescript, I got an error saying that it "Cannot find module 'jquery'". Even though all the code works in the browser, it looks like atom-typescript can't resolve anything looking like import x from y. Now, looking at ES6 doc, I found out that you import a class/function from a module. The meaning is totally different, and it makes sense with for

Adding modules in atom in python

∥☆過路亽.° 提交于 2020-01-25 07:58:08
问题 I have the module pygame and tkinter installed on my computer, but I cannot find out how to access them in the text editor atom. I can use them in IDLE by using import pygame but when I try to import it in atom it doesn't recognize the module. Anybody know why? All of my other imports work by the way (time, random, etc.) but I think that they work because they come installed with python (right?). 回答1: Firstly, atom is a text editor, it does not run python code by itself. So when you say you