I'm using IntelliJ and VSCode and i'm wondering if there is a way to mark a part of the code and the tool will only display and focus on that code and will make the rest disappear. This will help to get rid of clutter code that i'm not interested in.
You can point the cursor over the code block you want to focus on, press Ctrl+Shift+NumPad - to collapse all code blocks and press Ctrl+NumPad - to expand the selected one. See Write and edit source code | Code Folding for more information.
In addition you can consider using Distraction Free Mode.
I'm trying to show terminal and database sections on IntelliJ IDEA 17.1.3 but I'm not winning. Am I not doing it right by hovering on the bottom left corner or by going to View and Tools Windows? Any idea on how to go about this?
Am new to IntelliJ IDEA (am using 2017.1.3)...
Was writing some sample code and didn't like how the Debug view was located as tab in the bottom right corner. Am trying to reconfigure my Intelli IDEA perspective (borrowed that term from Eclipse) so, I can have the following setup:
Project view as it is (completely on the left hand side like a column), on the right of that is the Debug view.
On the bottom of the Debug view is the Source Editor view.
Project view is still on the left of both the Debug and Source Editor view.
Attached is a screenshot of my plight:
As you can see, the Project view is completely under my Debug View. I want it to be completely left of both Debug and Source Editor views.
Enable the Widescreen tool window layout option:
See the manual: Optimize for wide-screen monitors
I want to use code snippets in VSCode. But when I type, for example, for in javascript file, the Intellisense doesn't suggest snippet "for-loop" - I need to manually scroll the dropdown and select it. Is there any way to make VSCode to suggest snippets at first? Thank you!
UPD: I have found the person with same problem, but he has no answers - link
You need to use editor.snippetSuggestions config option with "top" value. Please, see Customizing IntelliSense article for more tips and tricks.
There is one more way to deal with this issue by setting
"editor.tabCompletion": true,
that way whenever there is a snnipet available it will use it automatically without even opening the list by using tab twice.
File > Preferences > Settings (Code > Preferences > Settings on Mac)
open "Editor" menu on the left
edit "editor.tabCompletion": true
more info: https://code.visualstudio.com/docs/editor/intellisense#_customizing-intellisense
Now that VS Code mostly abstracted away the settings.json file, you can do the instructions shown by Kavu, with this bonus tip:
go to Preferences > Settings
find the Search settings text input, at the top
type in "snippet"
The setting should be at the top of the result set:
Setting editor.snippetSuggestions to top only works for certain snippets: for but not foreach. With top, the snippet does appear higher in the completion list, but for some reason the keyword version is what is highlighted, with the snippet option scrolled out of view (and the scrollbar quickly fades, giving the impression there's nothing hidden)
The editor.tabCompletion to true approach works for both for and foreach.
I am unsuccessfully trying to add arrows above and below the thumbnail & text list controls on the right side.
There is not an example for this in the full pack.
Any suggestions would be greatly appreciated.
Reference: http://www.jssor.com/development/slider-with-arrow-navigator-jquery.html
Please leave me a comment if there is still problem.