Stop numbering blank lines in Visual Studio Code - ide

How to make VS-Code just number lines which contain some code or comment?
Edit: Like this

There is no such setting in Visual Studio code. You can only display them in absolute numbers, intervals, or relative distance to your cursor. More info here.

Related

Make VB.NET app DPI Aware (Visual Studio 2012)

I'm trying to make an image file from a control using CopyFromScreen, and it fails unless I set the scale to 100%. With a larger scale the image is progressively offset left and up, the further right and down the window is on the screen. (Unfortunately my eyes struggle at 100%)
I initially tried using DrawToBitmap but that fails as there's a rich text box in the control and it's documented that that won't paint.
I've read articles on this forum and followed the suggestion of including the dpiAware setting in the manifest, but that has no effect. I'm no expert and I'm wondering if it's because I only have VS 2012 and my manifest declaration starts with asmv1 rather than asmv3 so I had to amend the example code?
Any suggestions most welcome.

Power Commands for Visual Studio 2017 doesn't format XAML?

I couldn't find any documentation on this but I use Power Commands for Visual Studio with the Power Commands to format my document when I save. And I really love this tool. But for some reason it won't format XAML code. Even though I can format XAML using the known ctrl+k, ctrl+d command.
I thought it would just format anything that would be formatted when using ctrl+k, ctrl+d, but apparently it doesn't? How can I fix this? Is there another workaround so I can save AND format XAML with one command?

How do I adjust the column ruler in Visual Studio 2017 for Mac Community Edition?

The column ruler defaults to the 80th character which is way too small. How do I adjust this? (I circled it in red below)
I tried looking for extensions, but according to this post I can't install things like Productivity Power Tools that give me the option to adjust this.
Is there a plist file somewhere that I can edit?
This issue is super frustrating to me, so any help is greatly appreciated.
You can configure this in the preferences dialog. Select Source Code - Code Formatting. Then select the type of file you want to configure. Most code formatting styles inherit from Text file so you may just want to select that.
Then change the Desired file width setting. By default it is 80.
I have checked all settings in Visual Studio 2017 for Mac and I don't find any settings could change the column ruler's size. And I also searching in Visual Studio -> Extensions in Visual Studio for Mac, there also doesn't have such extension could adjust the column ruler.
So I submit this requirement to Visual Studio for Mac User Voice site. You could vote it and add comments from below link.
https://visualstudio.uservoice.com/forums/563332-visual-studio-for-mac/suggestions/31250842-column-ruler-size

Printing Documents in Visual Studio 2010

So I've done my research, and it seems that in order to print documents from Visual Studio using VB, it's a very long and lengthy process of manually drawing every line, rectangle and String on the piece of paper.
Thing is, I sometimes need to print up to 20 pages at once, and there are several functions that require this. After spending a week on creating one such document manually, I've decided to ask two questions:
1) Is it possible to print from a HTML template instead, i.e. inputting a HTML String?
2) Barring that, is it possible to use VB to print from a document that's already existing? This way, I can look into the possibility of generating a document with a different language (hopefully HTML) and print that instead.
EDIT:
I am attempting to do this because the current printing capabilities of Visual Basic is too tedious (boxes and lines have to be drawn at specific x/y coordinates). I would like to speed up this process and hopefully use HTML with CSS styles to print. Is this in any way possible?

SQL Reporting Services: Why does my report shrink when it's emailed?

I created a simple report and uploaded it to my report server. It looks correct on the report server, but when I set up an email subscription, the report is much narrower than it is supposed to be.
Here is what the report looks like in the designer. It looks similar when I view it on the report server: [http://img58.imageshack.us/img58/4893/designqj3.png]
Here is what the email looks like: [http://img58.imageshack.us/img58/9297/emailmy8.png]
Does anyone know why this is happening?
This issue is fixed in SQL Server 2005 SP3 (it is part of cumulitive update package build 3161)
Problem issue described below.
http://support.microsoft.com/kb/935399
Basically Full Outlook 2007 Client Uses MS Word HTML Rendering Engine (Which Makes Web Archive Report Looked Jacked Up).
NOTE: Web Outlook 2007 Client Uses IE HTML Rendering Engine (Which makes Web Archive Report Look Okay).
We have installed the patch on DB housing Reporting Services and it does fix the issue. Emails look all nice and fancy now.
I notice that the screenshots show Outlook 2007. Perhaps you're not aware that Microsoft somewhat hobbled the HTML capabilities of Outlook in 2007, and now it uses the Word HTML engine, and not the more advanced Internet Explorer one? Might this explain the lacklustre appearance?
http://www.sitepoint.com/blogs/2007/01/10/microsoft-breaks-html-email-rendering-in-outlook/
I got around this problem by doing the
following:
Add a Page Header to the report
Add a line to the page header. Set the width of the line to the
desired page width.
Set the line colour to white (eg to hide the line)
Hope this helps someone else,
Following on from girlC0d3r's solution, images aren't always guaranteed to be shown in an email.
A better solution to widening the report to prevent the content from wrapping is to have a long unbroken string of characters with no whitespace.
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
By giving the text the same color as the background of the email (e.g. white) they'll widen the report and be invisible to the user.
I don't see anything but my first guess is that the fonts are vastly different. The designer has one font and the email is a flat, no-frills kind of thing with a simple font. Without concrete examples, this is just a guess.
I don't think it's a font thing, because the text is being wrapped a lot, and it looks about the same size.
The images show in my preview, but not in the final post. So, here are links to them.
Report in the designer: [http://img58.imageshack.us/img58/4893/designqj3.png]
Email result: [http://img58.imageshack.us/img58/9297/emailmy8.png]
What report output format did you specify for the scheduled job? It seems to me you used HTML, which will autoscale depending on the output browser (HTML adapts).
If having the same layout is important then use PDF as the output format. Then, if the user wants to print the report you know exactly what it will look like and that it will fit nicely on the page.
Can you try a different format? pdf or xls maybe. In my experience web archive looks goofy. Don't know why.
Yeah, I'm using HTML. I would prefer to stick with that, because the users can just read it in their mail clients. PDF or XLS would require them to open an attachment.
I know that the HTML resizes itself to fit the browser, and that's a good thing. The problem I would like to fix is the wasted space - in the email client, the HTML shrinks too much.
I got around this problem by doing the following:
Add a Page Header to the report
Add a line to the page header. Set the width of the line to the desired page width.
Set the line colour to white (eg to hide the line)
Hope this helps someone else,
girlC0d3r is along the right lines (no pun intended), but the line will likely be shrunk along with the rest of the HTML in the email. A workaround I used yesterday was to create an image 1px high by 600px wide (or whatever), the same color as the background, and bring it into the report as an embedded image. Place it above or below the body of your report. This should force the intended width in the final email. I used this technique successfully in a report yesterday.
I just ran into this issue myself, exactly as portrayed in the OP's screenshots. The reports were beautifully rendered in nearly every format except for Web Archive. My trouble was the use of a rectangle containing each matrix that did not span the width of the report. Upon stretching it out through the remaining white space, the condensing behavior ceased. Hope that helps someone who doesn't have quick access to an SP upgrade!
Where it is not an issue of running on old software that needs a patch...
The reason is the columns are different sizes is because the MHTML Device Information Settings, 'OutlookCompat' is set to true
When creating an email subscription with MHTML format and open the report in Outlook, A forum post by Microsoft employee Fanny Liu says
change the OutlookCompat configuration setting for the MHTML Rendering extension in rsreportserver.config. Set the value to: False.
As I was researching it appeared that this would impact more than just column size. In my instance it was not that big of deal so I decided to leave well enough alone. It is correct in PDF and web, the email I send includes a link back to the report, if the client wants a pretty report they are going to want it in PDF, the email format is not expected to be printable.
Encountered the same issue and this worked for me.
Go to --> Properties --> Report
Set InteractiveSize Width to 4.9in
Set Margins to 0 for Left, Right, Top, and Bottom
Set pageSize to Width to 4.9in