editor

Syntax Highlighting Guide for Atom

微笑、不失礼 提交于 2019-12-17 22:14:22
问题 I am very pleased with the new editor by Github. Unfortunately it isn't exactly easy to customize it. I wanted to create my own Syntax Highlighting Theme, because I am not happy with the ones available to download (at least they don't seem to do well with Java) Now the files (syntax-variables, color.less, etc.) to style seem to be in: ~/.atom/ .../packages (if you want to change existing themes) The problem is just that I don't know which (CSS) classes style which elements of the syntax. Is

How do you return from 'gf' in Vim

时光毁灭记忆、已成空白 提交于 2019-12-17 22:03:58
问题 I am using Vim for windows installed in Unix mode. Thanks to this site I now use the gf command to go to a file under the cursor. I'm looking for a command to either: return to the previous file (similar to Ctrl + T for ctags), or remap gf to automatically launch the new file in a new window. 回答1: I use Ctrl - O 回答2: I frequently use Ctrl - 6 for this. It's handy because it allows me to quickly jump back and forth between the two files. 回答3: You might want to use CTRL-W gf to open the file in

Select all occurrences of selected word in VSCode

混江龙づ霸主 提交于 2019-12-17 21:38:40
问题 Are there any trick or extension to select all instances of selected word in visual studio code, to facilitate editing or deleting those instances without search and replace, like ِ Alt + F3 in sublime text 回答1: Select All Occurrences of Find Match editor.action.selectHighlights . Ctrl + Shift + L Cmd + Shift + L or Cmd + Ctrl + G on Mac 回答2: According to Key Bindings for Visual Studio Code there's: Ctrl + Shift + L to select all occurrences of current selection and Ctrl + F2 to select all

How to manually set language for syntax highlighting in Visual Studio Code

别说谁变了你拦得住时间么 提交于 2019-12-17 17:28:39
问题 Before the confusion begins, this question is about Code, the new lightweight Visual Studio Editor. You can get it from here: https://code.visualstudio.com/ I have a textfile (.txt) with CSS in it and want to get syntax hightlighting. You can open the command palette with ctrl + shift + p . But there you can not set syntax like in Sublime. Is there any other way to get the CSS coloring in from my textfile? 回答1: In the very right bottom corner, left to the smiley there was the icon saying

Android Studio Collapse definitions and methods

依然范特西╮ 提交于 2019-12-17 17:26:27
问题 How can I collapse all definitions and methods within the Android Studio editor? Visual Studio has that option on Edit-->Outlining , but I cannot find a similar feature in Android Studio. I am sure that this feature exists. How can I access Android Studio's outlining feature? 回答1: It is called Folding in Android Studio. First make sure it is enabled in config (it should be by default). Go to File -> Settings , then under the IDE Settings area find Editor -> General -> Code Folding , check the

What are the benefits of learning Vim? [closed]

最后都变了- 提交于 2019-12-17 17:17:56
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . Locked . This question and its answers are locked because the question is off-topic but has historical significance. It is not

Can you do complex editing of Word Documents in a browser?

家住魔仙堡 提交于 2019-12-17 16:52:19
问题 A friend of mine wants to have an application where people can upload documents in Word (or text) format, and then allow people to make edits to those documents within a browser. Is there any mechanism that would support adding text "bubbles" for adding comments? Either floating, or off to the side. Being able to save back to Word format is a must too. Or at least, some format supported by Word, that would still be editable. Saving it as an image is not acceptable. I was thinking about

How to change Visual Studio whitespace settings?

拜拜、爱过 提交于 2019-12-17 16:00:31
问题 I have whitespace characters showing in the Visual Studio code editor, and I'd like to remove them. 回答1: Ajryan is correct but depending on your profile this menu item may be obscured. The keyboard shortcut should still work though. CTRL+R,CTRL+W 回答2: You need to turn off showing whitespace characters. Menu: Edit > Advanced > View White Space. 回答3: If it is VS2008 then you can use " Ctrl+E , S " combination to toggle. 来源: https://stackoverflow.com/questions/257752/how-to-change-visual-studio

Visual Studio Code工具使用及配置

≡放荡痞女 提交于 2019-12-17 15:06:45
最近迷上了这个工具,启动速度快,好多插件。唯一不满意的地方就是svn版本控制工具。下面发现我装的一些插件及配置: 我安装的一些插件: 上面是我装的插件,等有时间再解释下插件的作用。 接下来说下配置: 进入设置步骤: 进入设置页面选择工作区设置 这是我的一些设置如下: 附上设置类容: { "workbench.startupEditor": "newUntitledFile", "workbench.editor.enablePreview": false, //打开文件不覆盖 "search.followSymlinks": false, //关闭rg.exe进程 "editor.minimap.enabled": true, //关闭快速预览 "files.autoSave": "off", //打开自动保存 "editor.lineNumbers": "on", //开启行数提示 "editor.quickSuggestions": { //开启自动显示建议 "other": true, "comments": true, "strings": true }, "editor.tabSize": 2, //每次保存自动格式化 "eslint.autoFixOnSave": true, // 每次保存的时候将代码按eslint格式进行修复 "prettier

How do I move to end of line in Vim?

杀马特。学长 韩版系。学妹 提交于 2019-12-17 15:04:14
问题 I know how to generally move around in command mode, specifically, jumping to lines, etc. But what is the command to jump to the end of the line that I am currently on? 回答1: Just the $ (dollar sign) key. You can use A to move to the end of the line and switch to editing mode (Append). To jump the last non-blank character, you can press g then _ keys. The opposite of A is I (Insert mode at beginning of line), as an aside. Pressing just the ^ will place your cursor at the beginning of the line.