Using VS2010 I wanted to turn on line numbering.
I went to:
Tools -> Options -> Environment with the intention of going to "All Languages" but the option wasn't there - neither was there an option for C# (which was the environment I specified at installation).
So I thought I just need to click "Show All Settings" in the bottom left corner... but it's not there.
All I really want is to turn on the line numbers but I'm kind of stumped without the right options being available.
Can anybody help with this?
From MSDN
To display line numbers in code
1.
On the menu bar, choose Tools, Options.
2.
In the categories list on the left side of the Options window, expand the Text Editor node.
3.
Perform one of the following steps:
◦ To set this option globally, expand the All Languages subfolder.
Depending on your language or setttings, you may also need to select the Show All Settings check box in the Options window to reveal the All Languages subfolder that this procedure mentions.
◦To set this option for a specific language such as Basic, C#, F#, open the subfolder for that language.
4.
Choose the General option.
5.
In the Display section, choose Line numbers.
you can turn on the Line number by going to:
Tools>Option>Text Editor>All Languages> General> mark the the Checkbox of Line numbers as Checked.
Tools -> Options -> TextEditor -> AllLanguages
For C#
Tools -> Options -> TextEditor -> C#
Related
I am making a few edits on huge DTSX packages in Visual Studio (SSIS), and my target is to make a more tidy layout of the flows.
For this reason, I use to select part of the flows and then use the following menu:
Format > Auto Layout > Diagram
Format > Align > Center
Format > Make Same Size > Both
Format > Horizontal Spacing > Make Equal
Format > Vertical Spacing > Make Equal
Is there a key shortcut for these commands?
I looked over Google and the official Microsoft documentation, but I didn't find anything helpful in this direction.
By default, there are no default keyboard shortcuts assigned for the layout commands:
You can assign your own shortcuts!
In the top menu strip, go to Tools > Options.
Once the options dialog is shown, click on the keyboard section. And select the command you are looking to assign the shortcuts. In the "Show commands containing", type Format. to find the commands related to formatting, e.g. Format.Diagram, Format.MakeHorizontalSpacingEqual, etc. Then press the shortcut you want and click on the assign button (as shown below).
After assigning the shortcuts, you check the command you selected in the menu strip and note that the keyboard shortcut is shown beside it.
I was trying to do something in Microsoft Word and I did something that I can turn back to normal and it's driving me crazy for days already.
So here it is. There are some strange squares that show every new line, doesn't matter if they are blank or not. It looks like this:
Click here to see the image
EDIT:
The OS is Windows 10 if it is of importance.
How to remove them? Please HELP!
File -> Options -> Advanced (tab) -> "Show document content" section -> uncheck "Show text boundaries". As an advice I would suggest do not do "something" you are not sure about ;)
is there any way to set word-wrap for all new/existing files should be in word-wrapping.
i need to set by default all the file in word-wrapping like notepadd++.
Thanks in advance.
Settings/Preferences | Editor | General | Use soft wraps in editor -- this setting affects all files.
You can disable or enable this option on per file basis (until it's closed) via View | Active Editor | Use Soft Wraps
More recent version (compared to the versions available when this question was answered) also have these options available in the Editor's gutter menu (right click in the area where the line numbers/breakpoints/etc are).
P.S.
Settings screen has very nice feature -- quick search box (top left corner) -- it does wonders. It allows you to quickly narrow the search scope of the specific setting by it's name (keyword).
You can also use "Search anywhere" (Shift two times) as well as "Find Action" (Help | Find Action... Ctrl + Shift + A) to search for individual settings.
Webstorm 9.0.3 Evaluation version on Windows 7:
I know I'm a bit late coming here, but if like me, you find that there's no "Use soft wraps in editor" option when you look in Settings>Editor>, i just discovered you can apply 'soft wrap' to individual files:
Open the file,
Left click the left margin (where the line numbers are),
You'll see "Use Soft Wraps" as an option you can turn on.
It's not quite what I wanted (change settings to apply to all files), but it's something.
Yes, it is possible. I have webstorm 2016. Follow these step.
Step 1:
This step may vary depending on OS used. Just search for preferences. I have screenshot for Mac.
Step 2:
Click on Editor twice. Note that arrow will change to downward position as shown.
Step 3 :
Click on general and see the option Use soft wraps in editor.
Step 4:
Select it and click ok
Settings (Preferences on Mac) | Editor | General | Use soft wraps in editor
Although its an old thread but updating as someone may find it usefull. In version 9.0.1, you have to select General inside Editor and then Use soft wraps in editor
Settings(ctrl+alt+s)--->Editor--->general--->use soft wrap in editor
I can't find the Reformat button, I know I can use ctrl+k+d, but I wish to have also the toolbar with the button. can someone help me ?
You can use Edit > Advanced > Format Document and you can also move this as a button to any toolbar. Go to Tools > Customize > Commands, select Toolbar and push Add Command button. Then select Edit category and find Document Format.
Apparently VS2010 (maybe others) hide certain commands depending on the style you choose. I chose Web Dev (code) as my choice and the Document Format is not present to be added to a toolbar. But, if I change to C# Code (tools>Import/Export) then the Document Format command is right there in the Edit menu where others here have said it is.
I had to import the C# Dev layout, but unchecked colors and code formatting options (so it won't overwrite those). What section you must import to get the format document button, I don't know, I didn't experiment that deep.
Seems stupid MS chose to force us down specific paths for layout with no convenient way to get out of it.
If you can't find it in the Edit menu: you can also find it if you press CTRL + P and then type >format. The shortcut is SHIFT + ALT + F
I spent time searching how to do this but came up with nothing. Is there a simple way I can make the editor show line numbers?
Tools, Options, Text Editor, All Languages, Show Line Numbers
You can also show them only for a specific language.
In the Tools menu, select Options. Under Text Editor, All Languages, General, you'll find "Display line numbers".
http://msdn.microsoft.com/en-us/library/ms165340.aspx
On the menu bar, choose Tools, Options.
In the categories list on the left side of the Options window, expand the Text Editor node.
Expand the All Languages subfolder, and then choose General to set this option globally.