Name: Anonymous 2018-10-23 10:11
If you're developing on windows it is objectively the wrong choice to not use Visual Studio.
C-x in vs either cuts the selected block or the whole line with newline if nothing is selected.
(defun vs-line-cut (point mark)
(interactive "r")
(if (region-active-p)
(kill-region point mark)
(kill-whole-line)))
(local-set-key (kbd "C-x") #'vs-line-cut)