I installed Sublime text 2 on my windows system . I'm trying to create a shortcut that would open the command line on the current file directory like i can using notepad++ . Also , on a similar note , how do i use/create shortcuts for "Open containing folder" in a way notepad++ allows me.
I think what you're looking for is the Terminal plugin by wbond, the author of Package Control. You can right-click and select Open Terminal Here... or use the CtrlShiftT keybinding to open a terminal at any file's directory, or use CtrlAltShiftT to open it at the directory containing the current project file.
Related
how to setup vs code so it opens files in its own redactor? It worked fine but somehow it broke down and now it opens html files in browser by default.
After terminal command 'open fileName' file opens in vs code redactor window.
Hi I'm here trying to help you. if i'm not mistaken, i'm guessing that you are using MacOS right?
Since i'm using Windows 11, i dont know anything about MacOS, but usually i open VScode via terminal (Command Prompt / CMD) then i go to a folder path and use command code . in there.
So the VScode open and i can see my .html file and other files in that folder in the VScode.
And also i believe that in MacOS it is also possible to set by default what app is used to open certain files such as .html file. In the Windows 11, i can changed it by using the "open file with" feature as shown in this link image. I can choose the VScode option, so it open VScode by default when i click the .html file and not open browser.
I also have some references that might help you:
https://youtu.be/YxJXIPebqMI
https://youtu.be/xLY6fqT2fIU
Sorry for my bad English, this is all I can give. I hope this can help you
Whenever I click "View/Edit" in Filezilla, the file opens in a new window at Sublime Text. How do I set the files to open as new tabs at the same window?
I tried: "open_files_in_new_window": false, but it doesn't work. I guess it is for MAC only but not Windows?
I am running Windows 8 64bit, Sublime Text 2.0.2, and FileZilla 3.9.0.6
In this case it's connected with ST 3 but you can give it a try or use version 3.
Answer by tsunami141 from http://www.sublimetext.com/forum/viewtopic.php?f=3&p=64638
I was able to find a solution to this. If anyone else is looking for
the answer at all, it was a problem with my filezilla filetype
associations. I was unable to get .html files to open in sublime text
so i had to edit the filezilla filetype associations settings to:
html "C:\Program Files\Sublime Text 3\sublime_text.exe" - open
I fixed the problem by removing the " - open" from the end of that
text, now all files open in tabs in the same window. Hope this helps
someone!
In Sublime Text 2, what steps do I need to take to get Syntax Highlighting for the Laravel Blade Template Engine to work?
As described in http://daylerees.com/2012/04/06/notable-blade-syntax-support-by-medalink/, I took https://github.com/Medalink/Laravel-Blade, unzipped it and copied the folder into Sublime's packages folder.
However, it doesn't seem to work (see screenshot), even if I set it manually using Tools\Command Palette...\Set Syntax: Blade
Is this only meant to work with particular Color Schemes (if so, which ones), or what am I missing? (I just started using Sublime Text today)
The easiest way to install plugins for Sublime Text 2 is through Package Control.
To install Package Control:
Installation is through the Sublime Text 2 console. This is accessed via the ctrl+` shortcut. Once open, paste the following command into the console:
import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print 'Please restart Sublime Text to finish installation'
This command creates the Installed Packages folder for you (if necessary), and then downloads the Package Control.sublime-package into it.
When you have Package Control installed all you need to do to install the Blade syntax highlighter is to:
Open the command palette and type "install package"
Press enter
Wait for a new palette to show up after it has fetched the package list
Type "blade syntax"
Press enter
Enjoy
For Sublime text 3 as well as sublime text 2
install Sublime Package Control (more help on: http://wbond.net/sublime_packages/package_control/installation)
then restart sublime text (2/3)
and press ----> control (or command in mac) + shift + p
there search for package control: install package
wait for another interaction screen
search for Laravel Blade (and other packages if you want)
{
For video tutorials on this and other , subscrive this channel : https://www.youtube.com/channel/UChEv_j3fE4k2r7KcEApFDyQ
}
Also, once you have Package Control installed, you should also install the package 'DetectSyntax'. It will automatically detect the blade syntax so you don't have to manually set it for each file.
In case you installed the Laravel Blade Syntax Highlighter using Package control, that plugin, for some reason keeps throwing out errors.
Package Control: The package specified, laravel-blade, is not available
What I did is just Preference > Browse packages and then rename the folder into laravel-blade. Seems working with no pesky errors now. What I did is just gut feel. I did not even read anything in the files in the folder.
--
Edited: Go to Preference > Browse packages > Package Control.sublime-settings and remove the offending entry.
mine was stored in users folder, just do a folder search for "laravel-blade" and remove the entry from json config
Find: laravel-blade
Where: /Users/:username/Library/Application Support/Sublime Text 2/Packages
How do I remove a completion from Sublime Text 2?
Specifically, in a Ruby file, after the num symbol #, hitting tab autocompletes to # =>.
I don't need this completion, and it's really annoying when trying to write comments. How do I remove it?
It's a snippet installed by default with the Ruby package.
In order to disable it:
Open Sublime Text 2.
Select Preferences -> Browse Packages...
It will open a directory, open the directory Ruby
Rename the file Add-'#-=-'-Marker.sublime-snippet in Add-'#-=-'-Marker.sublime-snippet.old
Assuming that you run SublimeText2 on Mac go to Preferences > Browse Packages. In the folder Packages find the Folder Ruby. In Ruby find the file Add-'#-=-'-Marker.sublime-snippet and manipulate it.
But I strongly recommend to put the changes in a user file. I think this is Preferences > Settings - More > Syntax Specific - User
See: http://www.sublimetext.com/docs/2/settings.html
I've had this problem for ages, and it's SO ANNOYING.
Suppose I want to run mysqldump.exe... here's my process: Start->run, type "cmd" ... dir into directory after directory until I finally get to c:/program files/mysql/bin/then I can FINALLY call "mysqldump.exe"
I don't mind using Windows Explorer to get to c:/program files/mysql/bin, but then I can't freaking open up any of the .exe files in a shell, and I can't open up shell with the directory being that one.
How can I do this?
This is what I do for those type of commands:
Drag a copy of the "Command Prompt" shortcut onto your desktop.
Open the properties of the shortcut.
Change the Target: field to: %SystemRoot%\system32\cmd.exe /k mysqldump.exe
Change the Start in: field to: c:/program files/mysql/bin/
Hit Ok, then rename the short cut from "Command Prompt" to "Mysqldump".
Then just double click the icon whenever you need that command. The "/k" option for cmd.exe leaves the window open.
Microsoft released a powertoy for Windows XP called Open Command Prompt Here. If you're using Vista, all you need to do is hold shift and right-click.
here's my process: Start->run, type
"cmd" ... dir into directory after
directory until I finally get to
c:/program files/mysql/bin/ then I can
FINALLY call "mysqldump.exe"
Why not just the following?
c:
cd "c:/program files/mysql/bin"
mysqldump.exe
Better yet, put this in a batch file and execute it.
You can also create a shortcut for cmd.exe and set the "Start in" directory to "c:/program files/mysql/bin".
You can download an add-in so that you can right click on the folder and open a command prompt. Saves a lot of time and you say you dont mind navigating to the location.
http://download.microsoft.com/download/whistler/Install/2/WXP/EN-US/CmdHerePowertoySetup.exe
A nice little trick is that the icon in the adress bar of explorer could be dragged to a command line window and it insert the full path at your current cursor position.
It doesn't work in vista but if you SHIFT-RightClick on a folder you have an "Open Command Windows Here" option that appears.
Under xp you could have it by saving this as a .reg and executing it :
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\cmd]
#="Open Command Prompt Here"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\cmd\command]
#="cmd.exe /k pushd %L"
Just use the explorer to navigate to the bin or any directory. then enter cmd at the address bar und hit return. the command line with start at this location.
You can do it with python:
If you don't have activepython already, download from ActiveState's Website. Next, run PythonWin and create a new script. Write the following:
from subprocess import *
Call("c://program files//mysql//bin//mysqldump.exe")
Save the script somewhere. When you want to run it, just doubleclick. There are easier ways if you like writing batch files, but Python is more succinct than even windows for this case.
Just put c:/program files/mysql/bin/ into your path...
Then you can run mysqldump.exe directly without even opening a cmd prompt by typing it into " Start > Run "
I was using the MS PowerToy for a while but moved on to the open source Open Command Prompt Shell Extension because of the key feature:
(copied verbatim from the website)
The ability to open a command prompt in the directory that you are currently in by right-clicking on any empty screen space in the directory. This eliminates the need to navigate up a level in order to open a command prompt in the current directory.
Having to actually click on a folder to open the command prompt using the MS tool was a annoyance for me... especially since I always need to run command line tools on my current directory at the time.