Opening a file in Aptana Studio from command line - aptana3

I am learning Ruby on Rails using Michael Hartl's railstutorials webcasts. He opens files from command line using Textmate. How can we open a file from command line using Aptana Studio? What is the command and do we need to change any settings?
thanks in anticipation.

Related

alternative to 'code' visual studio in pycharm

Some of my coworkers use visual studio code. Personally I am already used to pycharm. I've seen my colleagues using code filename in the VSC terminal, so that it opens the file filename in a new VSC tab. Is there a similar alternative in pycharm?
Yes you can create a CLI launcher in the Tools menu "Create Command-line launcher"
The last part of the path is the name you decide to give the launcher e.g "pcharm" or "pyc" (anything of your choice) and save it.
Reload the terminal, and run the command with your file name.

How to open file in a specific application from the command line

I want to open a .md file in a repo in visual studio code from my command line. Does anyone know the command for this?
I am using the bash shell.
First, you need to have Visual Studio Code CLI. ( Try code --version in terminal to check if it's already installed or not ). You have to install it manually on mac OSX (see below). In windows and linux, the command line interface code should be readily available in the PATH.
To install it (in MAC)
Launch VS Code.
Open the Command Palette (⇧⌘P) and type ‘shell
command’ to find the Shell Command: Install ‘code’ command in PATH
command.
After that you can use:
code filename
to open the filename in Visual Studio.
For more information, click
code --help will give you more information.
For example, code -r filename will open the file in already opened Visual Studio window.

File compare on macOS with FreeFileSync and Visual Studio Code

I struggling to make it work for me.
I have FreeFileSync (v10.20) and Visual Studio Code (v1.43.0) installed on macOS Mojave (v10.14.6) and would like to add a file compare context menu command, so
Step 1:
I added Visual Studio Code to my path as explained on their site (https://code.visualstudio.com/docs/setup/mac#_launching-from-the-command-line):
Launch VS Code
Open the Command Palette (F1) and type 'shell command' to find the Shell Command: Install 'code' command in PATH command.
After this, I am able to launch Terminal and run:
code --diff
Step 2:
I added the following option to FreeFileSync Preferences at 'Customize context menu':
Description: Compare with Visual Studio Code
Command line: code --diff "%local_path%" "%local_path2%"
The issue:
So far, it does nothing. No errors. No windows opened. Why?
Thanks for your help in advance!
Craby
OK, just I found out the solution myself, I hope this will help you guys, too:
The solution is to configure Visual Studio Code as external file compare (diff) tool in FreeFileSync as follows:
Description: Compare with Visual Studio Code
Command line: /Applications/Visual\ Studio\ Code.app/Contents/MacOS/Electron --diff "%local_path%" "%local_path2%"
Note the \ backslashes to escape the spaces... without these it fails silently.
Enjoy!
Craby

Command Prompt in Visual Studio

I want to add a command prompt that opens in project folder when I right click my project to open a context menu -- see below:
I know how to create a command prompt link through Tools > External Tools but I don't know how to add that link to my context menu.
Could someone tell me how I can do this? Thanks.
P.S. I'm currently using the latest version of Visual Studio 2017 i.e. 15.4.5
You can use the Open Command Line extension to open a command prompt on the project's path.

How to embed command shell in Visual Studio

I would like to be able to embed a command line interpreter inside a dockable window in Visual Studio. Is there any nice way to do this?
See the VS Command shell project
Checkout Open Command Line by Mads Kristensen. note it doesn't really "embed" the shell in VS, rather it adds a keyboard shortcut to open the shell at the project directory
it supports bash, powershell, git bash, ...etc
In Visual Studio click Tools -> NuGet Package Manager -> Package Manager Console
It embeds a cmd prompt with everything on your %PATH% you'd expect.

Resources