You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is useful e.g. , We wanna add CMD+SHIFT+X to format RSX in rust with Dioxus CLI
See How To do It
Open settings with CMD + ,
Go to Tools -> External Tools
Then Click (+) Sign to Create new External Tool
To Get the Path of Command Use which e.g.
which dx , outputs: /Users/uriah/.cargo/bin/dx
also we need to check what arguments we can use
we can run dx --help
dx --help
Build, Bundle & Ship Dioxus Apps
Usage: dx [OPTIONS] <COMMAND>
Commands:
build Build the Rust WASM app and all of its assets
translate Translate some source file into Dioxus code
serve Build, watch & serve the Rust WASM app and all of its assets
create Init a new project for Dioxus
clean Clean output artifacts
bundle Bundle the Rust desktop app and all of its assets
version Print the version of this extension
fmt Format some rsx
check Check the Rust files in the project for issues
config Dioxus config file controls
help Print this message or the help of the given subcommand(s)
Options:
-v Enable verbose logging
--bin <BIN> Specify bin target
-h, --help Print help
-V, --version Print version
Get dx fmt argurments
dx fmt --help
Format some rsx
Usage: dx fmt [OPTIONS]
Options:
-c, --check Run in'check' mode. Exits with 0 if input is formatted correctly. Exits with 1 and prints a diff if formatting is required
-r, --raw <RAW> Input rsx (selection)
-f, --file <FILE> Input file
--bin <BIN> Specify bin target
-h, --help Print help
in order to format a file we need to use -f parameter
to get the filepath we can get it with Insert Macro
Just Click the Plus sign as shown on the image below.
We got $FilePath$
Click Insert then Go Bind the KeyMap
Setting Up Linear
Step by Step Guide
Go to Settings -> Tools -> Tasks -> Server
Add Server
Pick Linear
Set:
Team ID e.g (COD)
API Key (Workspace API)
Workspace ID (codeitlikemiley)
Click Test
Linear Keys
Description
CMD+\
Open Tasks
CMD+SHIFT+\
Switch Tasks
About
Rust Rover Has some shitty keybindings, This makes it more logical to sink in your muscle memory