madskristensen / shifter Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
I was able to install Shifter and Color Preview mostly so that I could use the extensions with XAML. It appears that the named Color values are always provided in lower case, which is more appropriate for CSS. My suggestion is that Shifter be sensitive to whether or not it is running on a XAML file and to use Pascal casing for the color names.
Expected behavior: [What you expected to happen]
Named values should be lower case for CSS and Pascal case for XAML. Other file extensions may honor different rules.
Actual behavior: [What actually happened]
Named colors are all lower case regardless of file type.
Is your feature request related to a problem? Please describe.
.line {
width: 0.25em;
}
Now I want to shift through
like: 0.35, 0.45, 0.55, 0.65
or: 1.25, 2.25, 3.25, 4.25
var timeout = 1000;
Incrementing by 1 is not useful. I'd rather want to increment by 100 or by 1000 for example.
Describe the solution you'd like
This could be made dependent on the caret position.
For example 1: when the caret is right to the 5, increment by 0.01, when it's between 2 and 5, increment by 0.1 and when it's right to the 0, increment by 1
I apologize for not following the issue template, but I think the subject says it all ;-)
Describe the bug
This extension doesn't work for me. I tried it in Visual Studio Enterprise 17.4.4, and in Visual Studio Professional 17.2.x. DO you have suggestions on how to troubleshoot why it isn't working?
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Extension to work.
Screenshots
n/a
Additional context
I checked TOols > Options > Environment > Keyboard and made sure I saw entries for Shifter.
Shouldn't shifting up one color and then shifting down one color give the original color?
In CSS
border-bottom: 1px solid #d6d5d5;
Shift Up
border-bottom: 1px solid #d8d7d7;
Shift Down
border-bottom: 1px solid #cdcccc;
Another example
outline: 1px solid #26b050;
If you shift up to very light and then down to dark you never get back to green. It is just shades of grey.
Expected behavior: Shift up and then down should give the original hex color
Actual behavior: The color looks similar but the hex is different.
I'll often have many lines of code that should contain monotonically increasing integer values, 1 per line, often from copying+pasting a single line repeatedly, or from using the Duplicate Line command.
For example, I might have a multi-line SQL string that I've added column index numbers to (which are then used in SqlDataReader.GetFoobar(Int32)
(I know I could use column-names, but sometimes it's just easier/simpler to use column ordinals), or a multi-line String.Format
call with comments to remind me which args
parameter argument corresponds to which format
placeholder:
const String MY_SQL = @"
SELECT
foo, -- 0
bar, -- 1
baz, -- 2
qux -- 3
FROM
table
";
using( SqlDataReader rdr = ... )
{
String foo = rdr.GetString(0);
Int32 bar = rdr.GetInt32(1);
Decimal baz = rdr.GetDecimal(2);
// etc
}
or:
String formatted = String.Format(
format: "hello {0}, why don't you see {1} hiding in trees? because {2]. Why do {1} paint their toenails red? So they can hide in {3}. What's the loudest {4} in the {5}? {6} eating {7}",
/*0:*/ "<yourName>",
/*1:*/ "elephants",
/*2:*/ "they're really good at it",
/*3:*/ "cherry trees",
/*4:*/ "sound",
/*5:*/ "savanna",
/*6:*/ "giraffes",
/*7:*/ "cherries"
);
...but originally those lines would have looked like this half-way through editing:
const String MY_SQL = @"
SELECT
foo, -- 0
foo, -- 0
foo, -- 0
foo -- 0
FROM
table
";
...and...
String formatted = String.Format(
format: "hello {0}, why don't you see {1} hiding in trees? because {2]. Why do {1} paint their toenails red? So they can hide in {3}. What's the loudest {4} in the {5}? {6} eating {7}",
/*0:*/ , ""
/*0:*/ , ""
/*0:*/ , ""
/*0:*/ , ""
/*0:*/ , ""
/*0:*/ , ""
/*0:*/ , ""
/*0:*/ , ""
);
...respectively.
...so having some way of automatically incrementing identical integers in consecutive lines would be nice.
I'm happy to submit a PR for this functionality - though I've previously submitted PRs some of for your other projects but they're still sitting unread :(
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.