The stage is set: I'm about to add three li s to an ul and I think it would be a good application of multiple cursors in ST2. I'm not sure how to do this.
At step 1. what I'd really like to be able to do is: "open 2 new lines with 2 new cursors". I don't think it possible to do that so instead I tried opening 2 new lines manually (step 2) and than applying multiple cursors using ctrl+shift+up except then the cursors end up in a not-so-ideal spot (step 3).
Even if I hold cmd and click the cursors end up in the same not-so-ideal spot (step 3). So my question is how can I efficiently apply multiple cursors to my situation?
Trying Harpreet's technique doesn't seem to work for me:
Edit
Earlier Answer
After your Step 3
Press Upper Key Arrow
Press Down Key Arrow
Use tab key to go to proper position
type li (s)
When you end up in what you call not-so-ideal spot, press the 'Home' button twice on your keyboard, you'd be taken to the start of each line, then press tab four times to go to your 'ideal spot'.
I think this is an open-ended question.
In your very first attempt, if you replace two of the enters by ctrl+shift+d (duplicate_line), you will find when you do multi cursor up (select_lines), it will give you the positioning you wanted.
The cause of your problem is that your original three empty lines aren't actually the same (due to whatever indentation mechanism). And the best way of using multi-cursor is using them on structurally identical lines.
Of course in practice, it all depends on where your cursor currently is. For example if I am near the other < li >s, I might actually ctrl+shift+d (duplicate_line) a few times until I get 3 new < li >s before I ctrl+shift+down (swap_line_down) a few times to get them into that < ul >.
Related
I have this really frustrating problem that may or may not be fixable due to an access technicality, but I'm going to ask anyway.
On a report, I have multiple subreports that display a list of documents; and the information within those subreports are outlined by a grid, so that it looks like the documents are in a table.
My problem is, if I have the border of these objects too close, then sometimes the gridline/border outline is thicker in some areas and not in others. Why is this? It's making the report look really inconsistent and unpresentable.
The only way to combat this, is to leave a space between the object and the border section of the form. But then this means the documents are split and look like they are in their own tables, rather than one big table if this makes sense?
I can't seem to find any solutions to this at all. I'd be very grateful if you know how to fix this or can provide an alternative solution!
Please see the attached images:
UPDATE: I'd just like to add, that when I view the report in 'Report View'; it is presented correctly. This inconsistency only appears when I view it in 'Print view' or if I export it.
Unfortunately, I was unable to find a simple answer as to why access creates these inconsistencies. However, I did find a workaround which solves the issue.
Used this as a reference: https://msdn.microsoft.com/en-us/library/office/aa221362(v=office.11).aspx
Add a horizontal line underneath the objects on the report. This will separate the document rows
To get the vertical lines, I had to insert them via VBA code. This is because I was unable to get vertical lines to expand when the objects grow
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
Dim ctrl As Control
Dim intLineMargin As Integer
' This is the spacing between the right edge of the
' control and the Vertical Seperation Line
intLineMargin = 0
Loop through each control in the detail section of the subreport by selecting their Tags. The first object (Document) has an extra step, because you need vertical lines on both the left and right side.
First if statement creates the line on the left and right side for all controls with the tag 'DocumentName' (In this case, only the first object)
For Each ctrl In Me.Section(acDetail).Controls
With ctrl
If ctrl.Tag = "DocumentName" Then
Me.Line (0, 0)-(0, 0 + .Height + 150)
Me.Line ((.Left + .Width), 0)-(.Left + .Width + intLineMargin, .Height + 150)
End If
The rest of the objects have the tag 'DocumentDetails', and only need vertical lines on the RIGHT side of them. The if statement creates these vertical lines:
If ctrl.Tag = "DocumentDetails" Then
Me.Line ((.Left + .Width), 0)-(.Left + .Width + intLineMargin, .Height + 150)
End If
End With
Next
Set ctrl = Nothing
End Sub
Result:
All lines are now consistent
I wonder what would happen if you make the subreports be in datasheet view?
Otherwise I'd normally play around with line thicknesses, and make sure the control, section and subform heights were set exactly, and use the align tool to push your subreports together.
Or, as a last resort, I'd scrap the whole thing and load the pieces into a table and then make a subreport based off that. But I don't know what your stipulations are.
I'm a competent C# developer, but new to SSRS, so my inability to figure out this stupid little issue is kinda killing me here.
I've got a report that's basically a printed quote. There's a terms and conditions section at the bottom that looks like
some static text
some static text
some static text
With certain quote types, we want to add one more line to the bottom of that. I've tried a bunch of ways to get this to work, but can't seem to get it to work within the bulleted list. If I add a new line with the bullet, I've got a blank bullet when the quote type doesn't call for that item. If I clear the bullet and try to manually add it with chr(9) for tabs, it doesn't work. The closest I could get to it was this:
=iif(Trim(First(Fields!QuoteTypeCode.Value, "QuoteDetailsDataSet")) = "N", " • Prices Subject to Change", "")
Problem is, that still leaves an unwanted blank line. Ideally, I'd think my solution would be to put my «expr» at the end of the last static text line and trigger a line break that would add another bullet and my text, or, after that line, with html, add a <li>my text</li>, but none of that works.
Is there something silly that I'm missing here?
I could easily just create two versions of this box, one with that line, one without, and conditionally display the appropriate one, depending on what type of quote it is, but that feels "dirty". At this point though, as simple as this task is, I'm ready to go dirty rather than spin my wheels for too much longer over something so trivial. :(
I would Create a separate dataset, ex. Italicsdataset
select "bullet text formatted in html" as Option1, "bullet option 2" as Option 2...
then in your text box select create an expression such as
IIF(fields!Field.value = 1, fields!option1.value, 0)
I have minimal experience with HTML script so this may all go horribly wrong here.
Alright so I have a very simple yet very time consuming task of taking complete papers and converting them into HTML script. I'm using Sublime Text 3 with Emmet plugin.
Basically,
This is the first header
This is the first paragraph that needs to be tagged
This is the second header
This is the second paragraph that needs to be tagged
So super simple I need to put header tags on the headers and paragraph tags on the paragraphs.
What I have been doing is holding Ctrl and manually highlighting the desired text as it is all rather random. Problem is that takes forever to manually highlight the text like that.
I am aware of other ways to highlight such as Ctrl + L for the line. Problem is my close tags end up under the highlighted line.
Example:
<h2>This is the first header
</h2><p>This is the first paragraph that needs to be tagged
</p>
It's not a big deal but it makes the code harder to go through later and really chaotic.
The same problem persists if I click the corresponding number of the line.
Seeing as I have hundreds of pages to enter and even more headers, paragraphs, and pictures to properly tag; I'm looking for a solution to the tag dropping below the line or a faster method to entering text.
So, is there a fast method for entering text from a word document to Sublime text and quickly get the corresponding tags? e.g. <h2>,<h3>,<p>,<ul>,<li> and so on.
Any help will save my sanity, thanks.
When you select a line with CtrlL, it automatically selects the entire line, and moves the cursor down to the first position on the following line. There are two ways around this. The first is to place the cursor in the first position on the line you want to select, then just hit ShiftEnd and the line will be selected, with the cursor now sitting in the last position on that same line. Alternatively, use CtrlL, then hit Shift← (left arrow) to move the cursor from the first position on the next line to the last position on the selected line. Either way, you can now hit the key combo in Emmet for inserting a tag pair, and you're all set.
I have the letter p on multiple lines, so when I double click it it selects all the the stand-alone p's. It doesn't select the p's inside other words, exactly how I want it to be. Now, what is the shortcut to add the cursor to each of those selected blocks? I've been surfing the web for a solid 30 minutes trying to find one simple shortcut and it's quite frustrating because I feel like I used to know this too, but no one has it listed.
Using CtrlD doesn't work because it simply finds the next letter p, which happens to be inside many words I don't want to edit. Also I can't use CtrlShiftG because p is only one letter and there is no word for the cursor to be inside of. :( Please help!
Using ubuntu, if it matters.
If you select the space before and after the p, then hit AltF3 (Quick Find All) then you'll get what you're looking for.
I am not sure I understand your question correctly, but what I think is you want to select all the P's in a specific block of text.
If that, just select the text, press Ctrl-F, type p, and click Find all. It will select all the P's in the selection.
Is there a way I can use the middle click or maybe (Ctrl+Alt+Up) to a particular column across all lines in a long file? Currently, I am middle-clicking and then dragging this to the end of the screen and waiting for it to select all lines.
Specifically, for long files, how would I select one particular column across the entire file?
This should do it:
Ctrl+A - select all.
Ctrl+Shift+L - split selection into lines.
Then move all cursors with left/right, select with Shift+left/right. Move all cursors to start of line with Home.
OS X
You can click the following and drag to create a selection of one or more columns of characters:
Left mouse button + option
Middle mouse button
To add to an existing selection, hold command while doing the above.
To subtract from an existing selection, hold command + shift while doing the above
Windows
You can click the following and drag to create a selection of one or more columns of characters:
Right Mouse Button + shift
Middle Mouse Button
To add to an existing selection, hold Ctrl while doing the above.
To subtract from an existing selection, hold Alt while doing the above.
In Mac OS X, replace Ctrl with CMD key. So it'll be,
CMD+A - select all.
CMD+Shift+L - split selection into lines.
Then move all cursors with left/right, select with Shift+left/right. Move all cursors to start of line with Home.