Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Make your voice heard. Take the 2019 Developer Survey now

Questions tagged [sublime-text-2]

Sublime Text 2 is a cross-platform GUI text editor for Windows, OS X and Linux.

0
votes
1answer
28 views

Workflow to encrypt files I use in a text editor

People say it is a good idea to encrypt your file system and/or encrypt files. I'm wondering how I do this with Sublime Text editor. I'm wondering if I need to do this, essentially: Encrypt all files ...
0
votes
0answers
36 views

How can I set a specific background color on Sublime Text?

Note, I don't want to change or set another Color Scheme. I just want to specify the precise color (R,G,B in Hex) I want for the background (or any part of the sublime window). Is that possible? I ...
0
votes
0answers
12 views

Some numeric labels don't show up in my Sublime Text

I reinstalled Sublime Text 3 multiple times but it does not show up some numbers. For example line number, column number, build number, etc. (see image below). I don't understand what's going on but ...
0
votes
1answer
147 views

Find and replace only specific characters in Sublime Text

An example of what I want to do.. I have tons of: name : 'SomethingXX', I want to become: name: 'Something Else', Where Something is different for every entry, so I can find all using name : '((.*?...
3
votes
2answers
100 views

Sort packs of lines alphabetically

Note: the complementary question is here: How to separately sort lines within multiple “chunks” separated with headers? So what I did find an answer to, is how to sort lines in a text files ...
0
votes
1answer
399 views

How can I format selected java code in sublime text .txt file?

Is there any extension or technique for formatting java code in sublime text? For example, I have this code: static void test() { Pair<Integer, Integer>[] intPairArr = new Pair&...
0
votes
0answers
17 views

Preserving comment hierarchy in sublime 3

I use sublime for my Latex documents. In Latex, commenting a line means add '%' in front of the line. For example in the below scenario line 2 is commented, but lines 1 and 3 are not commented. Line ...
0
votes
1answer
144 views

SublimeText highlighting for plain text

Sublime has highlighting plugins for almost any language, however often i use raw text format to write down some ongoing notes. When the content gets big enough it is useful to have some ...
0
votes
0answers
414 views

View in browser PHP file xampp in Sublime Text 3

Try to view a PHP page in the browser with SublimeText 3 and XAMPP in Windows 10, but can’t seem to find the proper path. It still wants to open the browser to the directory location of the file, ...
1
vote
1answer
772 views

How to shift a block by exactly one space the right/left in Sublime

I know one can move a block of text using ctrl+ ] or cmd + ]/[. Is there any way so that I can move a block by exactly one space to left or right. Thank You
0
votes
1answer
88 views

Selecting maximized window sometimes selects windows behind it

To better explain the issue, lets say that on one monitor I have MySQL Workbench maximized and on the second monitor I have a browser (Chrome) open. Lets say I also have Windows Explorer open, it is ...
2
votes
2answers
800 views

Using regex in the “replace” part of a search/replace?

I have a large amount of tab-indented (outlined) text that is missing a leading bullet character: some point a sub-point I want to replace each tab by 2 spaces, and add a hyphen ...
0
votes
0answers
22 views

Can I make Sublime Text autocomplete treat accented characters as the same as unaccented ones? E.g. A=Á, E=É

Meaning that if I have a file foo fóó // and I start to type: fo| +-------------+ |foo | |fóó | +-------------+ // ^^^ Then I'd like the autocomplete box show both `foo` and ...
0
votes
2answers
76 views

What is the significance of hosts file and is it used as a loophole/bypass restrictions?

I came across one question on SO which instructs the user to fiddle with the hosts file in order to bypass a "update check". The software in question is Sublime Text Editor and the OP is asking for a ...
1
vote
2answers
142 views

Sublime Text 3 Automatically adds PHP to Ignored Packages

I'm running Sublime Text 3 with the following Packages: "PHP Companion" "Package Control", "PHP Completion" "PHP Getter and Setter" "PHP Grammar" "PHP Snippet" Everytime I start sublime PHP ...
0
votes
0answers
2k views

The application was unable to start correctly (0xc0000005)

i'm getting this error on most of the software like (brackets, sublime etc). To get the brackets to work i have to uninstall the software and then install it again. Even then it stop working after i ...
1
vote
1answer
2k views

Sublime Text/How to search with multiple criteria

Screenshot Hello, I would like to utilize a "Find and Replace" function in the sublime Text 3 with multiple criteria but didn't have a good luck to find one yet. I googled it and people said that ...
0
votes
1answer
125 views

Is there a way to highlight all lines containing a string, instead of just the string in Sublime Text?

Since the text search highlights the text it's actually pretty easy to search for text in long texts in the little scroll bar. Though I have the small gripe of not being able to see small texts in ...
0
votes
1answer
104 views

Sublime Text - refresh Browser then get focus back?

I work with a lot of CSS, requiring me to type in sublime text, refresh browser multiple times. To save time, I installed the Refresh Browser Extension (http://www.hongkiat.com/blog/sublime-text-...
1
vote
0answers
75 views

“grey out” folders and files which are ignored by git in sublime text 2?

When I have folders or files that are ignored by git then PHP storm "greys out" the files in the project panel. In this image node_modules is ignored: Is there a way to do the same for Sublime text ...
3
votes
2answers
740 views

How to edit a Netgear .cfg file on a mac?

I have a backup from my router Netgear. It created a file backup.cfg. When I open it in an editor (sublime, vi), it looks like it is encrypted. When I open it into sublime, it looks like this: ½...
2
votes
1answer
470 views

Disable file close warning dialogbox in Sublime Text

I primarily use ST as my temporary notepad. Now when I hit Ctrl+W it is producing me this dialog However 99% time my intention is "Close Without Saving". Is there a way to disable this popup? Since ...
1
vote
1answer
289 views

How to have Sublime Text's Vim mode and AutoHotKey work without conflict?

Sublime Text is by far the best text editor I've ever seen, and AutoHotKey is the scripting program I can't live without, especially the hotstrings feature, which allows me to create abbreviation-...
0
votes
1answer
103 views

Sublime Text: how do I edit the multiple line caret insertion key binding?

I can never remember what Sublime Text calls its caret/cursor/line insertion above/below command in the key bindings. On some platforms it is Ctrl + Alt + Up (or Down) and a caret (for typing) ...
1
vote
0answers
367 views

Highlighting start and end tags?

I'm currently evaluating Sublime Text Editor (build 3126). One of the features I would like in an editor is to clearly highlight the start and end tags in source code. At present, in Sublime, I see ...
-1
votes
2answers
4k views

How can I fully kill a program and/or python code running on Windows?

I was running Sublime Text 3, but it seems I've created an infinite loop somehow. I was writing an image to file but when I look in the folder I see that the image is flickering between one of those ...
1
vote
1answer
435 views

how to specifically control the smoothness of scrolling in Windows?

There are some applications like Sublime Text, Notepad++, or Netbeans on which the touch-pad scrolling of the laptop doesn't work effectively. If I try to scroll using the two finger touch, the whole ...
1
vote
0answers
2k views

Editing PDF via text editor

I'm trying to add page labels to a PDF file by modifying the file directly with a text editor. When I open the PDF in a text editor and save it, without making any changes, the file becomes corrupted ...
0
votes
0answers
52 views

Change location of APPDATA for SublimeText2 (windows)

I have a HOME folder on a broken network share which is slow (don't ask) so I'd like to make ST2 honor a different folder for its AppData\Roaming stuff. How can I do that? Setting USERPROFILE and ...
0
votes
0answers
19 views

In Sublime 2, is it possible to add text-column functionality to simple text files, for code-clarity?

This is hard to explain, but I'm not talking about re-indent; I'm asking if there's a simple way for simple text files to all match to the same formatting, using spaces, like a table with columns. ...
3
votes
2answers
655 views

Open empty Sublime Text window when launching from start menu

I have several Sublime Text windows open. I want to open a new empty ST window (to be more precise: with one, empty tab) by clicking on ST in the start menu. But when I click on it, an already-open ST ...
-1
votes
2answers
165 views

arch linux: sublime text text not alligned vertically

so instead of my code being vertically aligned like usual and in any other code text editor it has weird vertical alignment like i am typing in Microsoft Word or something. anyone have an idea what ...
0
votes
0answers
52 views

Windows XP: Add a program to the list of programs that can be mapped to open a filetype

I have a filetype (.xyz) that I would like to map to a text editor (sublime). It is currently mapped to open with notepad. Attempts to map .xyz filetype: 1) Open file explorer, select .xyz file and ...
1
vote
0answers
727 views

Shortcut to open another workspace in sublime text

Sublime text lets you switch current project workspace with ctrl+alt+p on Windows/Linux. I find myself often referencing older projects where I want to open another project quickly without closing the ...
1
vote
2answers
149 views

How to replace text in Sublime without moving the cursor or viewport

I am using Sublime Text to find some text in a file and make some changes to it, using the "Replace" command. When the thing I want to change is selected, if I click the "Replace" button, pick the "...
1
vote
1answer
38 views

Sublime text 3 asks me to choose a default language whenever I open it

Sublime text 3 asks me to choose a default language whenever I open it. I have the latest version, installed on windows 10. Each time I open sublime I see this Even if I pick english or whatever, the ...
1
vote
1answer
318 views

Sublime 3: How to make TAB reindent current line or the selected region (if present)?

TAB key by default just puts a tab, and only indents depending on several contexts, which I don’t understand quite well. { "keys": ["tab"], "command": "reindent", "context": [ { "key": "...
3
votes
2answers
613 views

Sublime text: Swap line and indent

I recently gave atom a try. Despite being too slow, there was one thing I liked: the way auto indent worked, basically everywhere. I found here how to make Paste + Indent the default in sublime text. ...
0
votes
1answer
286 views

Sublime Text Editor 3 doesn't show traceback when running Python code

Yesterday I installed ST3 and installed some plugins, but I noticed that if Python has a syntax error then it shows an error. But when a statement has a non-syntax error, then it shows nothing. Like ...
2
votes
2answers
1k views

Safe redo (Ctrl-Y)

In ST (Sublime Text for short) the redo action works very strange and inconvenient way, from my point of view. First test. Type some text, for example Foo and then press Ctrl-Y one or several ...
-1
votes
2answers
39 views

What is this texteditor's counterpart in Windows?

I am learning CSS and want to know what the following texteditor is: Is there a counterpart for Windows? There seems to be a Sublime plugin, when you type: div.classname then perhaps press some ...
0
votes
1answer
240 views

How to find wild card value and append to it

I have part of the hundreds of lines similar to : [vc_single_image image="55"] How can I change the lines so they all get appended img_size="full", resulting in [vc_single_image image="55" ...
4
votes
1answer
1k views

Force Sublime Text to open on current virtual desktop in Windows 10

I often have several virtual desktops open in Windows 10 with various programs in each one. I often want to open in my current virtual desktop a new instance of a program that already has a window ...
2
votes
1answer
73 views

How To find a word and replace with changing pattern

I have a text like the following: case "UID": if (!Convert.IsDBNull(objDataReader["XYZ"])) { objQualitativeAssessmentBiz.XYZ = objDataReader["XYZ"].ToString(); } break; case "GeneratedChaseId": ...
2
votes
2answers
3k views

How to remove rectangular box around text from sublime text editor

I want to remove the crummy boxes around text show in: I can't remember which package I had installed for this. Can anybody tell me how?
4
votes
2answers
350 views

Select all mispelled words in Sublime Text at once

Is there a way to, when activating the spellchecking with F6 then noticing that bunch of red-underlined typos, to select all misspelled words? Obviously we can't do it with a simple Ctrl+D. The idea ...
0
votes
0answers
217 views

Sublime text 3 - show number of bytes selected

Sublime text 3 shows number of characters selected and number of lines.. I want to add a functionality for it to also show the number of bytes (or kb) on selected text.. The number is pretty ...
4
votes
2answers
14k views

How to remove extra invisible character in a text editor

I have two "identical" 5-character strings in my text editors (Sublime Text2 | Notepad++). The first string was copied from Gmail and the second one just typed by hand. When I select the first ...
4
votes
2answers
461 views

How to make Sublime Text stop asking me to reload every file

I had several thousand files open in a Sublime Text project and those files were modified outside of Sublime so it started prompting me whether or not I wanted to reload the file or cancel. But if I ...
0
votes
1answer
78 views

Changing sublime key bindings to move to the beginning and end of line

I'm currently looking at this useful answer published on SO about modifying Sublime Text key bindings. I would like to check whether it's possible to assign those arrow keys: to move to the ...