How to use sublime text 2 like notepad++ - sublimetext2

In Notepad ++ we can use Move to other view for copy/paste attributes easily . But How i use sublime text 2 like two windows at a time for copy/paste attributes easily ?

If I understood your question right you will find the answer by accessing sublime's menu View>Layout>... Columns

Related

What is the equivalent Atom Indent Guides like in Brackets?

What is the equivalent Atom Indent Guides like the one Bracket has showing vertical lines connecting matching beginning/opening and ending/closing brackets or keywords?
Atom supports "Indent Guides" and even names it the same, you can access the configuration by choosing Settings View: Open from the Command Palette
or by pressing Ctrl-, (Control + Comma). Scroll about two-thirds of the way down and there is a checkbox to toggle the Indent Guide on or off:
When enabled they look like this in the editor:
Also found an "improved" package in Atom if Atom's indent-guide isn't cutting it.
https://atom.io/packages/indent-guide-improved
Repo seems to be updated.
UPDATE: show indent guide option is now under Editor tab, in settings.
Screenshot:
Haha. I encountered this issue today too. If I understand your question correctly, you want to know how to enable this feature?
Go to preferences/settings and then scroll down and check 'show indent guide'.
Example

Sublime text 2: difference between Sublimerge vs FileDiffs plugins

I want to do some file comparison in Sublime Text 2, I have done a bit of research and found out that:
Sublime text has a built-in diff feature but its features are limited open a folder (Click "File" | "Open Folder..." And choose a folder at a level that contains both files), Sumblime Text 2 will open a new window. Multi-select the two files you want to compare in the sidebar, then right-click and choose "Diff Files...". see quora.com/Sublime-Text/Can-you-compare-files-code-within-Sublime-Text-2
There are 2 good plugins that do the job: Sublimerge and FileDiffs
However I could not find a clear explanation of the differences between them. I suspect that rather that one beeing better than an other, one would fit one type of usage more than another, but I may be wrong.
Thanks in advance
Sublimerge has the ability to ignore whitespaces and caps and generally is a more feature rich diff tool where as FileDiffs is good for quick and dirty diffs.
Here are some of the available options you can turn on and off in Sublimerge.

Set Default Syntax for a New Created File in Sublime Text 2

In Sublime Text 2, when I double-click on the tab bar, it will create a new file, Sublime Text 2 will give it Plain Text syntax, How to change this default Plain Text syntax to HTML syntax?
I know there is a sublime-DefaultFileType that could set the default file type of new files which are created with the Ctrl+N. However, how can I make it take effect when I double-click on the tab bar to create a new file?
I'm afraid there isn't a solution for double click.
According to the official website, DefaultFileType
This only affects files which are created with the Ctrl+N shortcut (Cmd+N on OSX).
for installation, follow the Installation part.
Please refer to this stack post: (On Text 3 it also works fine)
Sublime Text 2 Default File Type on new file
This py code solution support double click. DefaultFileType might be an easy option. But it didn't work in some cases, it has been 5 years old. In fact, I have to use this method for text 3 on windows.
This is the syntax for SQL :
http://rouge.jneen.net/pastes/PNq0
save it like DefaultLanguage.py
use the default location : \Data\Packages\User

In Sublime Text 2 How to view carriage return and line feed?

In notepad++ there is a toolbar button to switch on/off display of EOL characters, i.e. carriage return and line feed.
Can Sublime Text 2 do the similar thing?
In case anyone is here years later, I found success with the sublime package RawLineEdit.
Install with Package Control
Enter Raw Line Edit: Toggle into the command palette (via Ctrl+Shift+P)
Further documentation of features can be found in the User Guide.
Note that this package is only supported in Sublime Text 3.
Sublime Text does not currently support displaying EOL characters.
http://sublimetext.userecho.com/topic/104394-is-it-possible-to-show-all-characters-spaces-tabs-cr-lf-etc/
There is a quick workaround, in the search, enable the Regular expression and the search value use \n. You will see all the line feed is highlighted.
05 2021
This might not really helpful for OP question and also the question is 8yrs old and iam assuming he must have got a answer pretty early on.
This is anyone still looking for the answer to show the carriage return in Sublime text 3.
As on May 2021 the current version is 3.2.2
Detailed version of #Sam YC answer
Tested in Sublime text 3
Press Ctrl+ F (Windows)
Select the first box 'Regular Expression (Alt+R)'
Also select 'Highlight matches' (Last box with plain border)
Enter \n
You should see something like this. If you do not see anything, just toggle the 'Highlight matches'.
There is another way to achieve this.
Go to preference -> choose "settings-user"
In the file opened paste this command.
"ensure_newline_at_eof_on_save": true

Format Code In MonoDevelop

I am using MonoDevelop on Mac to write MonoTouch apps. Automatica code indenting/formatting works great while I am typing.
The problem is that when I copy and paste code snippets, in many cases I lose the formatting and lines are combined together, indenting is lost, and it is a huge pain to implement the tabs, spacing, and line breaks manually. Is there anyway I can use a command in monoDevelop to automatically indent and apply the formatting to existing code.
I thought maybe Edit|Format|Format Document/Selection would work, but these commands don't have any affect on the code at all.
Any help?
To format the entire document in one keystroke: control-I
To format a selection: Edit->Format->Format Selection
To customize the formatting: MonoDevelop->Preferences->Source Code->Code Formatting
You actually need to select all your text, and then go to Edit->Format->Format Document. It doesn't seem to work otherwise.
For me on macOS, the shortcut for "auto-format" is CTRL + i.
You can change the shortcut if you want. To change it, go to Preferences -> Key Bindings, then type "format" in the search box and edit the "Format Document" shortcut/key binding.