atom-editor

What to add to `Path` in “System Variables” to install shell commands to enable the Atom command?

江枫思渺然 提交于 2020-01-24 21:42:05
问题 I hope you are having a nice weekend. As I am under Windows, the install shell commands option is not available. As I tried to install shell commands to enable the atom command at the command line, I have to add something to the Path in "System variables". If someone has any idea on what I should put there, that would be greatly appreciated. 来源: https://stackoverflow.com/questions/40954643/what-to-add-to-path-in-system-variables-to-install-shell-commands-to-enable

How can I enable syntax highlighting for .vue files in Atom?

守給你的承諾、 提交于 2020-01-22 13:48:28
问题 I'm starting up with Vue.js. The first problem I've run into is that my IDE (Atom) doesn't beautify my .vue files. It's all just white text. How can I make Atom highlight .vue files properly? 回答1: language-vue package adds syntax highlighting to Vue components. There is also another package to beautify your code. Install atom-beautify package. It has Vue beautifier preinstalled. 回答2: The Vue.js project maintains Awesome Vue.js, "a curated list of awesome things related to Vue.js". This

How to run a command when atom starts

被刻印的时光 ゝ 提交于 2020-01-15 03:53:26
问题 I would like to run various commands when Atom starts, so that it opens in the state I expect it to without having to run those commands manually every time. I know init.coffee is run when Atom starts, but I don't know how to run a command from there. 回答1: I finally found the answer here: atom.commands.dispatch(atom.views.getView(atom.workspace), 'package:command'); Just change package:command to your desired package & command, and put the result in your init.coffee . package:command is the

How to add the es6 syntax to atom editor

人盡茶涼 提交于 2020-01-14 22:40:30
问题 I was using sublime text, but now would like to use the atom.io editor. I have these lines of code: // error: Missing semicolon. import React, { Component } from 'react' export default class RegisterName extends Component { constructor(props) { // error: Missing semicolon. super(props) this.state = { firstName: '', lastName: '', displayError: false, error: 'Please provide a valid name' //error: Missing semicolon. } } // error: Class property must be methods. Expected '(' but saw instead '='..

Disable matching single quote in Atom Text Editor

戏子无情 提交于 2020-01-13 08:03:11
问题 How to selectively disable atom from creating a matching single quote and and backtick? This helps in programming in Scheme. I tried Settings>Package>Bracket Matcher, if I disable Autocomplete bracket then it also disables matching brackets and matching double quotes. I want matching brackets and matching double quotes but not matching single quotes. EDIT: This feature is now available in Atom. 回答1: The feature that you want is now available. Just delete the quotes from the Autocomplete

Aborting commit due to empty commit message (editor = atom)

夙愿已清 提交于 2020-01-13 04:55:28
问题 Does anyone actually use atom for git commit messages here? I want to but I'm having this problem and have been sticking with git commit -m '....' . When I try to use atom, it opens atom and almost immediately i get this message from git bash: hint: Waiting for your editor to close the file... Aborting commit due to empty commit message. 回答1: I understand you have switched to SublimeText since your question, but for others: Recent (April 2019) atom/atom issue 19147 set [core] editor = atom -

How to set jshint/jsxhint “esnext” option in Atom

雨燕双飞 提交于 2020-01-11 17:09:11
问题 I am using Atom's linter , react , and linter-jshint / linter-jsxhint . In my JSX files, I keep getting the warning Warning: 'import' is only available in ES6 (use esnext option). (W119) That's pretty straightforward. I did some searching, and found that this can be set under the jshintConfig option in package.json (when using NPM). My project uses NPM and I have a package.json . I added: "jshintConfig": { "esnext": true } After that, I did a reload but the warnings persist. I also modified

Atom `script` add-on doesn't recognize Django Model/settings when running a script

◇◆丶佛笑我妖孽 提交于 2020-01-11 13:09:02
问题 It seems I run into some dependencies issues when trying to run a python script within my Django based web application using the atom add-on script . I would like to run the following script using the Atom script add-on: feeder.py: import zmq import time from time import sleep import uuid from models import AccountInformation context = zmq.Context() zmq_socket = context.socket(zmq.PULL) zmq_socket.bind("tcp://*:32225") time.sleep(1) while True: try: msg = zmq_socket.recv_string() data = msg

Atom `script` add-on doesn't recognize Django Model/settings when running a script

我的梦境 提交于 2020-01-11 13:08:11
问题 It seems I run into some dependencies issues when trying to run a python script within my Django based web application using the atom add-on script . I would like to run the following script using the Atom script add-on: feeder.py: import zmq import time from time import sleep import uuid from models import AccountInformation context = zmq.Context() zmq_socket = context.socket(zmq.PULL) zmq_socket.bind("tcp://*:32225") time.sleep(1) while True: try: msg = zmq_socket.recv_string() data = msg

Getting apm to work on Windows, no Atom folder

自古美人都是妖i 提交于 2020-01-06 16:19:10
问题 I'd like to get apm working on Windows. I have Atom (1.2.4) installed. I have read that Atom comes with apm , but people seem to point to: C:\Users\[user]\AppData\Local\Atom\app\resources\app\apm\bin I have no Atom folder in my Local folder. Does that mean I don't have apm installed at all..? I need to add the executable to my PATH variables so I can run it from a command line, but I don't know where apm is installed! 回答1: Looks like it's here: C:\Program Files\Atom\resources\app\apm\bin .