Giter Club home page Giter Club logo

smartcommandlineargs's Introduction

Smart Command Line Arguments

A Visual Studio Extension which aims to provide a better UI to manage your command line arguments

"The only smart way to pass standard command arguments to programs." - A happy user

Install

Install the extension inside Visual Studio or download it from the Visual Studio Marketplace.

Visual Studio 2015, 2017 and 2019 and the following project types are supported:

  • C# .Net Framework
  • C# .Net Core
  • VB .Net
  • F#
  • C/C++
  • Node.js
  • Python

If you're using Cmake make sure to read the Cmake support wiki page.

Usage

Open the window via:
View → Other Windows → Commandline Arguments

If the Window is open or minimized the commandline arguments should not be edited via the project properties.
Changes which are made in the window are applied to all project configurations (Release/Debug etc.) of the current startup project.

Version Control Support

The extension stores the commandline arguments inside a json file at the same location as the related project file.
If this new behavior is not welcomed one can fallback to the 'old' mode where the commandline arguments have been stored inside the solutions .suo-file:
Tools → Options → Smart Commandline Arguments → General → Enable version control support

Interface

Add button: Add new line
Remove button: Remove selected lines
Add group button: Add new group
Up/Down button / alt text: Move selected lines
Copy cmd: Copy command line to clipboard. In the example below, the string -f input_image.png -l latest.log -o out_image.png is copied to the clipboard.
Show all projects: Toggle 'Show all projects' to also display non-startup projects.

Window

Hotkeys

CTRL+ / CTRL+: Move selected items.
Space: Disable/Enable selected items.
Delete: Remove selected items.
Insert: Add a new item.
Alt+Insert: Add a new group.
Alt+Enable/Disable Item: Disable all other Items (useful if only one item should be enabled).

Paste

There are three ways to paste items into the list, drag'n'drop, CTRL-V, and the context menu.
There are also three different types of data which can be pasted:

  1. Prevously copied or cut items.
  2. Files, here a argument with the full file path is created for each file in the clipboard.
  3. Text, where every line is a new argument. (Groups can also be represented, by a line ending with a :. Nested groups are done by indenting with a tab.)

Context Menu

Context Menu

Cut / Copy / Delete: Cuts/Copies/Deletes the selected items.
Paste: Pastes the previously copied/cut items, text, or files (see Paste).

New Group from Selection: Creates a new Group and moves the selected items into it.
Split Argument (only available while ONE argument is selected): Splits the argument with the typical cmd line parsing rules (e.g. -o "C:\Test Folder\Output.png" is split into two arguments -o and "C:\Test Folder\Output.png").
Project Configuration / Launch Profile (only available while ONE group is selected): Shows a sub menu to select a Project Configuration/Launch Profile. If a Project Configuration/Launch Profile is set for a group, it is only evaluated if this Project Configuration/Launch Profile is active.
Set as single Startup Project (only available while ONE project is selected): Sets the selected project as the startup project.

Donation

If you like this extension you can buy us a cup of coffee or a coke! :D

Donate

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.