Is it possible to set Wordwrap in WebStorm? I need to set by default all the files should be in wordwraping - word-wrap

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

Related

Default find-and-replace to have regex enabled

Why does Atom always unselect the regex option in the find-and-replace menu? I know I can use a shortcut to re-enable it but it only seems to stick for the current session. If I close and then reopen Atom, the find-and-replace menu once again defaults to having regex unselected. Who are these coders who don't search using regex?!? I assume there's an undocumented setting I can use in config.json but I didn't see anything in the GUI settings.
It will always start that way. What I do is to assign easy shortcuts that only apply in the search editor. This is in my .atom/keymap.cson (open by wenu, edit, keymap, or select "Application: Open your keymap" from the command palette:
'.platform-linux .find-and-replace':
'ctrl-/': 'find-and-replace:toggle-regex-option'
'ctrl-*': 'find-and-replace:toggle-selection-option'
'ctrl--': 'find-and-replace:toggle-case-option'
'ctrl-+': 'find-and-replace:toggle-whole-word-option'
Well after I accepted #netizen's answer I did some research and looked at the atom/find-and-replace package itself and specifically it's settings file: https://github.com/atom/find-and-replace/blob/master/lib/find-options.coffee
There's a setting find-and-replace.useRegex noted there which seemed to be a boolean, so I modified my Atom config.cson (Command Palette or Settings > Open Your Config > edit config.cson) like so:
"*":
"find-and-replace":
useRegex: true
This had the desired effect—regex is turned on by default when I use find/replace now. Note that, since find-and-replace is an additional package, settings changes to it don't go under "core" in your config.cson.
There are other boolean settings for caseSensitive, wholeWord, and inCurrentSelection, too.

how to come back when you are reading code in Xcode?

I have been developing in zend studio and there is a feature I miss a lot in Xcode. When you are reading code in a main function and you want to go in a specific function to read something, you can click in the left area of your current line of code were your are, and a flag-mark appears in that line of code, so you can go anywere else in the code and it will be very easy to come back to that line of code you were before because there is a flag and you only have to click on it and you automatically go back. Does Anybody know a similar way to do this in Xcode?
Unfortunately, this feature was present in earlier versions of Xcode (up to Xcode3 IIRC) and was called "Bookmarks", but it was removed since then.
You can use breakpoints (and disable them) as a workaround, even if it's not perfect. I personally prefer using other tricks, like "Open Quickly" and named tabs.
Alternate trick 1 : "Open Quickly"
One trick is to use Command+Shift+O (or "File" menu > "Open Quickly") to quickly open a file. In the field that appears, you can type:
The name or parts of the name of a file.
Typing "MainViewController" will propose to jump to the MainViewController.h or MainViewController.m file.
Typing "MainVC" will work too, as well as "MainViewCtrl", as long as the order of the letters you type is the same as the full name.
Very handy to just type "ContTVCell" to open the ContactsTableViewCell.h file that is hidden deep in subgroups of my project for example
Similarly, you may also type the name or parts of the name of a symbol, especially a method name.
For example, typing tvcellforrow will list you all the definitions of -tableView:cellForRowAtIndexPath: it could find in your project and let to jump to the one you want
When typing (parts of) the name of a file, adding : followed by a number at the end will allow you to directly jump at the corresponding line
For example, typing mvc:50 will propose you to jump to line 50 of MainViewController.h or MainViewController.m
Another trick : using (named) tabs
Don't forget that you can open tabs in Xcode, which can be very handy in this kind of situation.
When you are editing a file at some interesting position, you can create a new tab to browse elsewhere and go at any other place… and then go back to your first tab to find the code where you left it at the time you switched to the other tab.
Don't forget that you can name your tabs (simply double-click on their title) to give them a more explicit title. You may then quite think of them as "named bookmarks" somehow
Likewise, don't forget that you can detach tabs in separate windows too, if you prefer (for example to keep them around and visible on your secondary screen while you edit another part of your code)
You can even combine this with the "Open Quickly" trick presented above: once you made the "Open Quickly" field appear and typed something into it, instead of just validating using the enter key:
use Alt+Shift+enter to let Xcode present you a small widget that let you choose where you want the file to open (in the current tab, in another tab, in the assistant editor, in a dedicated window…)
use Alt+enter to open the file using the alternate navigation defined in Xcode preferences (Xcode > Preferences > Navigation > Optional Navigation). By default, the behavior when opening a file while using the Alt key is to open the file in the Assistant Editor. Personally I changed that in my Xcode preferences as I prefer to make Xcode open the file in a separate tab instead, which makes Alt+clic much more useful.
Sure, all those tricks with "Open Quickly…" and "Tabs" do not replace the bookmarks feature that you are missing. But they are still nice alternate ways to jump quickly to any position in your code, even any specific line of any specific file in your project, wherever you are in Xcode (even without having to have the Project Navigator visible on the left part of your window), and let you have multiple editors in different tabs to go quickly back to a part of interest in your code
its on top of your editor i have added two pics just check them.
When you navigate to another place in Xcode, say, open a different file, or Command-click and jump to definition, you can go forward and back by swiping right or left on the trackpad with two fingers.
You can also use keyboard shortcuts: Ctrl+⌘+→ to go forward, or Ctrl+⌘+← to go back.
Finally, you can click triangular buttons at the top left in your edit area.
There is a go back button at the top left of the editor!
If that is not good enough, whar I do is misuse breakpoints to set flags in my code. The breakpoint navigator thus becomes a table of flags. It isn't much but there you are.

How to disable seemingly random syntax higlight in Notepad++

Can anyone suggest:
Why does it higlight like this? I don't seem to do anything to activate it:
How to disable it?
This is old, but I ran into the same problem and just figured out an easy fix.
From the file menu: Language > N > Normal Text
I'm not sure if this is the same issue as mine, but I wanted to keep the language setting enabled but remove the highlighting.
I did this by going to Settings --> Preferences --> Highlghting
Removed the Enable check mark for Highlight Matching Tags.
1) Go to settings -> Style Configurator.
2) Select the language that Notepad++ has chosen, usually based on filename extension. You can also change this manually under the Language menu setting.
3) Go through the Styles until you find the style that applied the highlighting. You can tell because the Background colour will match the highlighted color.
4) Change Background colour to white.
I do not have an answer for your first question
For your second question do the following steps
Inside Notepad++ press ctrl A( select all)
Right click for context menu.
select Remove style and click on Clear all Styles
This will clear all the highlights.
FYI. You may also see this sort of behavior when using a vertical edge in background mode. Switching to line mode will eliminate the highlighting of lines that run over the set character count for the vertical edge.

Visual studio Reformat Code/Document

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

Where is the basic Control-TAB (MRU) behavior in Xcode?

In most multi-document editors for windowing environments, Control-TAB will utilize an MRU list to bring the user back to the last visible file. What is the appropriate command to accomplish this in Xcode 3.x?
I currently have Ctrl-TAB mapped to "View|Previous File", however this does not appear to be an MRU. Worse yet, if it hits the "beginning" of the list (should be a circular buffer), it falls back on inserting an actual TAB character into the text editor.
As of Xcode Version 3, there isn't anything that's exactly like the MRU you describe - however, check out the discussion on this page for some options that will get you closer to the behavior you want.
In recent XCode (10.3), when in a code editor press:
ctrl+1, right, right
Then use up and down keys and enter
to select from the MRU sorted list of recent files.
There is even an option to increase the size of the history.
In Xcode 3 (or any Mac application) you can use Command-Tilde (⌘~) to switch between open windows.
In Xcode 4 you use ⌘} for next tab and ⌘{ for previous tab - command shift bracket.
As a side note, for some reason Xcode 4 won't let me set the key binding for previous/next tab to the standard Control-Tab. When I try it puts in Command-Control-Tab.

Resources