Home > Net >  Visual Studio how to quickly remove the empty line?
Visual Studio how to quickly remove the empty line?

Time:10-03

In front of a blank line, there are some Spaces of indentation, and I want to delete this one, back to a line, need to press the Backspace button to delete the many times, if you are using Shift + Home to choose a line, or Ctrl + L to delete the current line, also is to press a few keys, then press a Backspace to retreat to a line, so the efficiency will be much lower, is there any setting or shortcuts to quickly finish operation?
I found comparing Visual Studio IntelliJ IDEA, though is likely to be powerful, but a lot of practical experience does not equal to IDEA, in the IDEA, if the current line is empty, I want to delete the current line back to a line, just press Backspace, can intelligent judge superfluous Spaces, one-time is deleted,

CodePudding user response:

Shortcuts, vs the editor is the editor of every language own definition, none of vs business, you scold the wrong object,

CodePudding user response:

reference 1st floor caozhy response:
vs editor shortcuts, is the editor of every language own definition, none of vs business, you scold the wrong object,


Is not the question of whom to scold, I don't want to scold, I now use of this tool, just want to improve their efficiency, to ask is there any way, also hope that this tool can do better and better, can bring you convenience,

CodePudding user response:

I have explored and didn't find a way, also as if there is no
in the optionsYou first use the mouse to select, delete at one time

CodePudding user response:

Under the condition of without any text selected CTRL X is to delete the current line (in fact is shear current line) if you used the vi, just know that with the dd order
Another saying is not selected is CTRL C copy current line of text to the clipboard

CodePudding user response:

Lines of code at the line number on the left click the mouse to select line and then press the backspace key

CodePudding user response:

Vs many did not so convenient

CodePudding user response:

Vs smart enough so it should be a mature editor we provide a train of thought as long as it can do it

CodePudding user response:

VS2017-2019 VB.net also does not automatically add (), have what idea

CodePudding user response:

Ctrl + x shear line directly

CodePudding user response:

The strongest IDE: you try CTRL + backspace to delete all Spaces before the cursor, CTRL + X to delete line cursor or shift + delete and delete line cursor is selected, and make a copy of the current line to clipboard;
Don't think that the strongest IDE is blown out

CodePudding user response:

references to the tenth floor damao_94 response:
the strongest IDE: you try CTRL + backspace to delete all Spaces before the cursor, CTRL + X to delete line cursor or shift + delete and delete line cursor is selected, and make a copy of the current line to clipboard;
Don't think that the strongest IDE is blowing out

  •  Tags:  
  • C#
  • Related