editor

How to enter a Git commit message in this editor?

心已入冬 提交于 2020-07-22 22:04:12
问题 I am trying to enter the Git commit message in the editor which looks like Vi, but none of commands like :wq , Esc etc. are working. Whenever I try to merge the master branch, this window pops up: Merge branch 'master' into awesomebar # Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit. --**-Mg: MERGE_MSG (fundamental)---

How do I turn off the unlimited whitespace in IntelliJ editor?

隐身守侯 提交于 2020-07-16 10:58:31
问题 How do I remove the ability to move the cursor after then end of line in IntelliJ? 回答1: File menu -> Settings -> Editor -> General -> Virtual Space and uncheck 'Allow placement of caret after end of line' . You may also uncheck the other options in the Virtual Space panel. 回答2: If the other answers don't seem to be working, you might have Column Selection Mode enabled. On my Mac it's mapped to Cmd + Shift + 8 . It's located under the Edit menu. That menu item will show a little checkmark when

How do I turn off the unlimited whitespace in IntelliJ editor?

牧云@^-^@ 提交于 2020-07-16 10:58:00
问题 How do I remove the ability to move the cursor after then end of line in IntelliJ? 回答1: File menu -> Settings -> Editor -> General -> Virtual Space and uncheck 'Allow placement of caret after end of line' . You may also uncheck the other options in the Virtual Space panel. 回答2: If the other answers don't seem to be working, you might have Column Selection Mode enabled. On my Mac it's mapped to Cmd + Shift + 8 . It's located under the Edit menu. That menu item will show a little checkmark when

Why VS code Explorer smooth scrolling is not working?

守給你的承諾、 提交于 2020-06-29 04:26:26
问题 I already use "editor.smoothScrolling": true this settings, but it only works for editor not for explorer. How to make smooth scrolling on explorer in my editor (vs code)? [NOTE] I already read a issue for this but find no answer. 回答1: From https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_46.md#smooth-scrolling-for-lists-and-trees Smooth scrolling for lists and trees Enabling the workbench.list.smoothScrolling setting will make scrolling in lists and trees much smoother

Android studio 3.6.1, Layout not opening in an editor. Studio not showing the XML editor only shows the design part of layout? [duplicate]

六眼飞鱼酱① 提交于 2020-06-28 06:52:12
问题 This question already has answers here : Where is Android Studio layout preview? (22 answers) Closed 3 months ago . When i opened studio( Android studio 3.6.1 ) today. The layouts are not opening in an XML editor its not showing the XML editor but only the design part . Screenshot below I tried invalidate cache and restart, clean project, build project, sync gradle files , restarted my system nothing works. What is causing this odd behaviour ? 回答1: Click on button which is top right corner.

How to specify bold font in VS Code editor?

不想你离开。 提交于 2020-06-25 07:58:51
问题 How to specify a bold font in VS Code's settings.json ? For example, I have Envy Code R and Envy Code R Bold (exact names shown in windows' font viewer) installed on my windows machine, and while "editor.fontFamily": "Envy Code R" setting works fine, "editor.fontFamily": "Envy Code R Bold" doesn't work (a fallback font is used instead). Is that possible to do at all? There are no any other font settings like fontWeight or fontStyle . I also tried specifying other fonts with bold variants to

Increase the caret cursor size in VS Code

∥☆過路亽.° 提交于 2020-06-15 19:32:12
问题 Is there a way to incrase the size for the caret cursor in VS Code? I'm on MacOS. I find it hard to see: 回答1: In settings.json try the following: "editor.cursorStyle": "line", "editor.cursorWidth": 4 I found I could change the width from 1 to 7 and the cursor would get larger or smaller. Setting it to 0 did not have the effect of hiding it. 来源: https://stackoverflow.com/questions/47005048/increase-the-caret-cursor-size-in-vs-code

Increase the caret cursor size in VS Code

荒凉一梦 提交于 2020-06-15 19:28:15
问题 Is there a way to incrase the size for the caret cursor in VS Code? I'm on MacOS. I find it hard to see: 回答1: In settings.json try the following: "editor.cursorStyle": "line", "editor.cursorWidth": 4 I found I could change the width from 1 to 7 and the cursor would get larger or smaller. Setting it to 0 did not have the effect of hiding it. 来源: https://stackoverflow.com/questions/47005048/increase-the-caret-cursor-size-in-vs-code

How to make all line endings (EOLs) in all files in Visual Studio Code, UNIX like?

时间秒杀一切 提交于 2020-06-10 07:22:11
问题 I use Windows 10 home and I usually use Visual Studio Code (VSCODE) to edit Linux Bash scripts as well as PHP and JavaScript. I don't develop anything dedicated for Windows and I wouldn't mind that the default EOLs for all files I edit whatsoever would be Unix like (nix). How could I ensure that all EOLs, in all files whatsoever (from whatever file extension), are nix, in VSCODE? I ask this question after I've written a few Bash scripts in Windows with VSCODE, uploaded them to GitHub as part

Vertical Line in Android Studio

妖精的绣舞 提交于 2020-05-23 00:56:29
问题 I don't know why but sometime in Android Studio Editor, it shows vertical line as shown in screenshot below. Don't know about other editor but it happens in Android Studio. So why it is showing and how to hide it? 回答1: That line historically represents the margin of A4 paper, that is useful only if you need to print the code. Old school says that you should keep your code inside that margin, to guarantee much portability. But.. nowadays in the real life it makes no sense to me! Because we