VSCode Scrolling to next line on long lines of code - visual-studio-code

When I highlight a long line of code - if I barely move my mouse to the row above or below it will automatically go to the beginning of the line. Really annoying for simple highlight and change edits. At the moment, I only use my arrow keys as an alternative.. or I have to be very careful and not get close to the row above and below the line I'm working on. I've attached a GIF as an example.
I've looked in the settings for "scroll" options and i'm unable to find anything. Anyone have any ideas?
https://giphy.com/gifs/3ohc1be4q9OaSsRIPu

Workaround. Use word wrap: "editor.wordWrap": "on"
You can even enable it temporarily (editor.action.toggleWordWrap alt+z)

Related

VScode add some color to ramdom lines

I'm very new to VSCode, and the experience has been annoying for one thing: it adds random colors to some blocks of the code. I have not figured out why: there is no block of instructions (like between { and }) or errors, or anything I could make sense of.
I just want them to disappear. How can I achieve this?
You can disable the configuration editing or other extensions cause this issue in VS by :
Open your Extensions.
- On the top right, click the three dots forming a horizontal line.
- Input "#builtin" in the search box.

VS Code settings

I would like to change the following VS code behavior but can't find a way to do so:
When the cursor is on some items a box pops up with info about that item. I find this extremely annoying as it often blocks what I'm trying to edit. How to disable the pop up?
I code CSS on a single line, such as:
h1 {something; something; something; } And the next CSS on the next line. No Spaces!
But when I save it VS code automatically reformulates it, putting each something on a new line. This is extremely, extremely annoying! It horribly wastes space, and forces me to scroll down a lot to find something I want to edit. How do I get VS code to stop messing with My Coding Style?
To disable the pop up. Do these necessary changes Disable pop up
To stop the CSS formatting, just see in the extensions if you have downloaded CSS formatter, if so then uninstall it or disable it.

VS Code automatic indentation

I have a problem with automatic indentation in VS Code. If you pay attention to the gif below, you will see that the editor only moves a tab forward for the first time, but the second time it should automatically detect that a tab moves forward, but this is not the case. Many editors do not have this problem, but it has really become a problem for me. Also, for example, I do not want to press a shortcut key to solve this problem, I expect the editor to handle.
I found theanswer. Just disable trimAutoWhitespace in VS Code settings.

Selecting lines of code in Pycharm is working strangely

Recently, I wrote a block of code, and tried to copy and paste some functions around the code. But when highlighting the block of code I am trying to select, it exhibits strange behaviour. The first picture is the faulty case, and the second picture is the normal case.
First of all, I can click anywhere on my script even though I dont have spaces there.. if that makes sense (sorry I cant explain it any other way). Second, when I drag my mouse up, it drags up for only that section. Looking at the faulty screen shot, if I were to copy that block, it would only copy the parts in blue... Normally when I drag my mouse up, it automatically highlights the whole line as seen in the normal picture. Also, notice the giant white line on the faulty highlighting compared to the normal highlighting. I am wondering how I can go back to my old normal highlighting...
I think I was able to reproduce the problem by enabling column selection mode.
Try going to Edit-->Column Selection Mode. Uncheck it. If this was the problem, perhaps it was a finger flub which performed a shortkey operation.

Eclipse: scroll space below code

is there any plugin for eclipse to add some space below the code so that I can scroll the last line up to half the screen / up to the top? I hate it when the line I am writing on is always on the bottom of my screen.
Of course, I could add these lines myself, but that would also mean that I have to remove them later, and I don't feel comfortable with so many empty lines...
If there is no such plugin, would it be easy to write one?
I suggest as you are saying adding these lines manually and in the end hit Ctrl+Shift+F to format your code which also includes removing those empty lines at the bottom.