atom-editor

Disable warnings (ids selector) in linter-csslint on Atom?

余生颓废 提交于 2019-12-20 07:37:46
问题 How to disable warnings in linter-csslint on Atom like iDs selector warning 回答1: You can create a .csslintrc file in your project's directory as specified here. Inside the file, you can add this: { "ignore": [ "ids" ] } You can see the full list of rules here. 来源: https://stackoverflow.com/questions/44875427/disable-warnings-ids-selector-in-linter-csslint-on-atom

Atom editor: snippet for inserting a timestamp

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-20 02:28:28
问题 Below is an Atom snippet I was playing with. What I want to do is insert a timestamp with a developer's name at the end. This is useful when multiple folks are working on the same codebase and you need to comment out some code or add a comment. This way other developers know who did what, and when they did it. I've found it very useful and wanted to create a snippet to do this. However, as you can see from the snippet, it's very ugly...JS is not my forte. Is there a clean way to do this? time

Pass arguments to packaged electron application

╄→гoц情女王★ 提交于 2019-12-20 01:33:36
问题 We're using electron-packager to bundle up and distribute the front-end of our web application. We need to be able to pass in the host and port of the server to the electron front-end for connecting. When we launch via electron main.js --host blah --port 8080 it works. Once it's packaged, we run via ./MyApp --host blah --port 8080 and it doesn't work. This is bad because we don't want customers to need to install electron/npm itself. Also worth noting is that this happens whether we package

Disable a specific linter rule in Atom (for js-standard)

断了今生、忘了曾经 提交于 2019-12-19 07:24:23
问题 How do I tell an Atom linter, specifically js-standard, to ignore a rule? I want it ignored project-wide, and I thought that I could achieve this with a package.json or a .eslintrc but I can't get either to work. The rule I want to disable is camelcase I should be able to do this in a package.json file, because the js-standard linter has an option called honorStyleSettings : Honors style settings defined in package.json. Current style settings supported: ignore parser What's the syntax of

What is the red arrow to the left of the line numbers on Atom?

萝らか妹 提交于 2019-12-18 18:34:14
问题 What does the red arrow --seen between lines 95 and 96 in the screenshot below-- mean on GitHub's Atom editor? Thanks! 回答1: If your currently open project is using Git as a revisioning system, the arrow in the gutter means that you deleted one or more lines at this location in the file. If you commit (or roll back) your changes, the arrow is going to disappear. Running a "git diff" on your file should show that you deleted some content between lines 95 and 96. Depending on the theme you're

“CSV file does not exist” - Pandas Dataframe

ⅰ亾dé卋堺 提交于 2019-12-18 15:16:07
问题 I am currently learning Pandas for data analysis and having some issues reading a csv file in Atom editor. When I am running the following code: import pandas as pd df = pd.read_csv("FBI-CRIME11.csv") print(df.head()) I get an error message, which ends with OSError: File b'FBI-CRIME11.csv' does not exist Here is the directory to the file: /Users/alekseinabatov/Documents/Python/"FBI-CRIME11.csv". When i try to run it this way: df = pd.read_csv(Users/alekseinabatov/Documents/Python/"FBI-CRIME11

Atom Editor: multiple snippets

て烟熏妆下的殇ゞ 提交于 2019-12-18 12:52:48
问题 This is such a simple question but I can't find any documentation besides the readme. How can I have multiple custom snippets in Atom Editior: For example I have this in my snippets.cson right now '.source.js': 'Normal Comment Block': 'prefix': 'cmm' 'body': """ //********************************************************************************** // //********************************************************************************** """ '.source.js': 'Dashed Comment Block': 'prefix': 'c--'

Changing comment colour in Atom editor

雨燕双飞 提交于 2019-12-18 10:51:19
问题 I would like to change the colour of comments in the Atom editor. From a bit of googling, I found I can put the following in my .atom/styles.less file: atom-text-editor::shadow .comment { color: #ffffaa; } That's great - now I have bright yellow comments that demand to be noticed rather than fading into the background. The trouble is that it now looks like the below As you can see, the text colour of the comments has changed, but the comment delimiters and links within comments remain in the

Atom menu is missing. How do I re-enable

跟風遠走 提交于 2019-12-18 10:21:42
问题 The menu in Atom text editor is gone. I dont know how I disabled it. I tried F1-12 keys. How do I re enable it? Here's how it's looking now: 回答1: Open Atom and press ALT key you are done. 回答2: Temporarily show Menu Bar on ATOM: Press ALT Key to make the Menu bar appear but it is not permanent. Always display the Menu Bar on ATOM: To make the change permanent, press ALT + V and then select Toggle Menu Bar option from the " View " drop-down down. [Tested on ATOM running on Ubuntu 16.04] 回答3:

Atom v1.32 stopped detecting matching tags and JavaScript syntax highlighting

喜夏-厌秋 提交于 2019-12-18 07:00:54
问题 After v1.32.0 update, atom just stopped detecting matching html tags, and javascript/typescript color scheme changed (variables, functions, classes, object keys, etc...). Is it possible to reactivate matching html tags highlighting and use the previous javascript color scheme that I was used to already? Thanks! 回答1: As mentioned in the release notes, Atom v1.32 enabled the new tree-sitter parser. Try enabling/disabling it to see whether that restores the old behaviour: Screenshot: Toggle Tree