fpgj.over-blog.com/
14 Février 2021
2 minutes to read; In this article. This article introduces how to use AssemblyVersion and AssemblyFileVersion attributes in the AssemblyInfo.cs file. Original product version:.NET Framework Original KB number: 556041. AssemblyInfo.cs provides two attributes to set two different types of versions. This tip shows how to use those two. C# (pronounced see sharp, like the musical note C♯, but written with the number sign) is a general-purpose, multi-paradigm programming language encompassing strong typing, lexically scoped, imperative, declarative, functional, generic, object-oriented (class-based), and component-oriented programming disciplines. It was developed around 2000 by Microsoft as part of its.NET initiative.
To add your shortcode to the WPBakery Page Builder content elements list, vc_map() function should be called with an array of special attributes describing your shortcode.
$params Associative array which holds instructions for WPBakery Page Builder and is used in 'mapping' process.
Type | ||
|---|---|---|
| name | String | Name of your shortcode for human reading inside element list |
| base | String | Shortcode tag. For [my_shortcode] shortcode base is my_shortcode |
| description | String | Short description of your element, it will be visible in 'Add element' window |
| class | String | CSS class which will be added to the shortcode's content element in the page edit screen in WPBakery Page Builder backend edit mode |
| show_settings_on_create | Boolean | Set it to false if content element's settings page shouldn't open automatically after adding it to the stage |
| weight | Integer | Content elements with greater weight will be rendered first in 'Content Elements' grid (Available from WPBakery Page Builder 3.7 version) |
| category | String | Category which best suites to describe the functionality of this shortcode. Default categories: Content, Social, Structure. You can add your own category, simply enter new category title here |
| group | String | Group your params in groups, they will be divided in tabs in the edit element window (Available from WPBakery Page Builder 4.1) |
| admin_enqueue_js | String|Array | Absolute url to javascript file, this js will be loaded in the js_composer edit mode (it allows you to add more functionality to your shortcode in js_composer edit mode) |
| admin_enqueue_css | String|Array | Absolute url to css file if you need to add custom css for element block in js_composer constructor mode |
| front_enqueue_js | String|Array | Absolute url to javascript file (useful for storing your custom backbone.js views), this js will be loaded in the js_composer frontend edit mode (it allows you to add more functionality to your shortcode in js_composer frontend edit mode). (Available from WPBakery Page Builder 4.2.2) |
| front_enqueue_css | String|Array | Absolute url to css file if you need to load custom css file in the frontend editing mode. (Available from WPBakery Page Builder 4.2.2) |
| icon | String | URL or CSS class with icon image. More info here |
| custom_markup | String | Custom html markup for representing shortcode in visual composer editor |
| js_view | String | Set custom backbone.js view controller for this content element |
| html_template | String | Path to shortcode template. This is useful if you want to reassign path of existing content elements through your plugin. Another way to change html markup |
| deprecated | String | Enter version number from which content element will be deprecated. It will be moved to the 'Deprecated' tab in 'Add element' window and notification message will be shown on elements edit page. To hide element from 'Add element' all together use ‘content_element'=>false (Available from WPBakery Page Builder 4.5) |
| content_element | Boolean | If set to false, content element will be hidden from 'Add element' window. It is handy to use this param in pair with ‘deprecated' param (Available from WPBakery Page Builder 4.5) |
| params | Array | List of shortcode attributes. Array which holds your shortcode params, these params will be editable in shortcode settings page |
Here you should describe all you shortcode's attributes that should be editable with WPBakery Page Builder interface. Each shortcode's attribute should be described in the separate array element.
Defining 'Text' attribute:
Type | ||
|---|---|---|
| type | String | Attribute type. In the 'Available type values' table you can see all available variations |
| holder | String | HTML tag name where Visual Composer will store attribute value in WPBakery Page Builder edit mode. Default: hidden input |
| class | String | Class name that will be added to the 'holder' HTML tag. Useful if you want to target some CSS rules to specific items in the backend edit interface |
| heading | String | Human friendly title of your param. Will be visible in shortcode's edit screen |
| param_name | String | Must be the same as your parameter name |
| value | Array or String | Default attribute's value |
| description | String | Human friendly description of your param. Will be visible in shortcode's edit screen |
| admin_label | Boolean | Show value of param in WPBakery Page Builder editor |
| dependency | Array | Define param visibility depending on other field value. Please readParam Dependencies |
| edit_field_class | String | Set param container width in content element edit window. According to Bootstrap logic eg. col-md-4. (Available from WPBakery Page Builder 4.0) |
| weight | Integer | Params with greater weight will be rendered first. (Available from WPBakery Page Builder 4.4) |
| group | String | Use it to divide your params within groups (tabs) |
There are multiple attribute types available, this field is used to 'tell' WPBakery Page Builder how to handle your attribute in content element edit screen.
Description | |
|---|---|
| textarea_html | Text area with default WordPress WYSIWYG Editor. Important: only one html textarea is permitted per shortcode and it should have 'content' as a param_name |
| textfield | Simple input field |
| textarea | Simple textarea field |
| dropdown | Dropdown input field with set of available options. Array containing the drop down values (either should be a normal array, or an associative array) |
| attach_image | Single image selection |
| attach_images | Multiple images selection |
| posttypes | Checkboxes with available post types |
| colorpicker | Color picker |
| exploded_textarea | Text area, where each line will be imploded with comma (,) |
| widgetised_sidebars | Dropdown element with set of available widget regions, that are registered in the active wp theme |
| textarea_raw_html | Text area, its content will be coded into base64 (this allows you to store raw js or raw html code) |
| vc_link | Link selection. Then in shortcodes html output, use $href = vc_build_link( $href ); to parse link attribute |
| checkbox | Creates checkboxes, can have 1 or multiple checkboxes within one attribute |
| loop | Loop builder. Lets your users to construct loop which can later be used during the shortcode's output |
| css | Basic CSS style editor for your content element. Check 'Add 'Design Options' Tab with CSS Editor to Your Element' page for more details |
| … | attribute types can be extended with new custom types. Tutorial: Create new param type |
It is possible to link param with another param by defining dependency param. Dependency param is array with defined param name and values which will allow to display this linked param. Also it is possible to show param field if linked field is not empty and define callback function which will be called when value of linked element is changed. Next table contains field list and explanation of dependency param array keys.
Type | ||
|---|---|---|
| element | String | Param name (linked field) which will be observed for changes. Must be the same as param_name param for shortcode attribute |
| value | Array | List of linked element's values which will allow to display param |
| not_empty | Boolean | Display field if value of linked field is not empty |
| callback | String | javascript function name. Function will be called when value of linked field is changed |
If you are looking for a way to create content elements with 'nested' structure, have a look at this example. Hands off 3 2 4.
In this example you will be guided throw the whole process of adding your own shortcode to the WPBakery Page Builder editor. We also prepared a nice and clean 'starter' for you, feel free to use it as a starting point for your own WPBakery Page Builder shortcode.
For example you have your own shortcode bartag with 2 attributes: foo and bar. More about Shortcode API read in WordPress Codex.
Now lets call vc_map() function from our functions.php file with an array of special attributes to describe attributes of our shortcode. Important:vc_map()call should be hooked on WPBakery Page Builder vc_before_init action.
As you can see it has an array of params. This list represents shortcode tag as base and params list which will be editable with settings form inside WPBakery Page Builder editor. In params array we have only one element as array with list of params. param_name must be the same as your parameter name. Next most important attribute of params is type. There are a lot of predefined types (all of them you can see here). For foo attribute we'll use 'textfield' which is simple input field. Add 'heading' and 'description' attributes for human friendly title and description of your param. Default attribute value can be added in param attribute 'value'.
After adding 'mapping', you will see your shortcode inside content elements list in WPBakery Page Builder editing mode and ability to control access to this shortcode in WPBakery Page Builder settings.
More advanced example: Let's say you want to add a ew special param to your shortcode: let's call it color. First of all, modify your shortcode hook function.
Now our shortcode has color param, which it will use as a style for our div on the site's front end. Now we can call this shortcode with [bartag foo='foo-value' color='#000000″]. To make color attribute editable in WPBakery Page Builder editing mode we should change mapping settings by adding new param in params list with param_name – ‘color' and type – colorpicker. Easy as that!
Now you should see new color picker field in WPBakery Page Builder edit screen for our [bartag] shortcode.
Some shortcodes has content block. For example: [bartag foo='foo-value' color='#000000″]Here goes content[/bartag]. You can create wysiwyg editor field or simple plain textarea field inside settings form of your shortcode.
Important: Only one wysiwyg editor per content element is allowed and it should have param_name equal to 'content'.
Lets change your shortcode registration hook.
Now update vc_map() function call, and add new attribute to the params array. vc_map() now should look like this:
This will add new attribute to our [bartag] shortcode and on the edit screen you will see TinyMCE WYSIWYG editor. So with few incremental steps we have taken our simple [bartag] shortcode to the whole new level.
To fix several performance and Git integration issues, we're releasing a 1.2.1 recovery build. You can view the resolved issues here.
Downloads: Windows | OS X | Linux 64-bit .zip.deb.rpm | Linux 32-bit .zip.deb.rpm
The May release of VS Code has some great new features, enhancements to existing features, and a set of important bug fixes.
Here are the highlights:
Please continue reading for more information on what's new in May.
The editor automatically inserts whitespace when you add a new line, based on indenting rules and the previous line's content. Over time, this can result in unnecessary whitespace being persisted in the file. Thanks to PR #5423, the new editor.trimAutoWhitespace setting causes the editor to track the automatic whitespace it inserted and remove it if it no longer is needed, for example by typing somewhere else. Please note, this new setting is on by default.
You can now immediately select all find results by pressing ⌥Enter (Windows, Linux Alt+Enter). This is much quicker than doing a find and replace and leverages VS Code's multi-cursor support. Thanks for PR #5715!
When a language service isn't able to compute semantic completion (suggestions), VS Code defaults to word based completions. This is why for some languages you see an IntelliSense list with every word in the file. Some folks would prefer to not see this list at all so you can now disable word based completions with the editor.wordBasedSuggestions setting.
The Peek view editor that shows for reference search and for previewing declarations can now be resized!
Note: Support for Tabs is not in the 1.2.0 (May 2016) Stable release. You can preview the experiences below by using the Insiders Release of VS Code.
Tab support is the number one User Voice request. While the full implementation will take multiple iterations to fully deliver, we wanted to share progress made during the May iteration.
During this milestone, we focused on managing stacks of open editors. In the picture below, you can see that the left pane has two editors open, the center pane has four, and the right pane has two more. Files listed in italics are preview files, they allow you to single click and browse files without cluttering the list of open editors and eventually tabs.
When you close an editor the last opened editor in the stack is restored, instead of closing the pane as it does today. In addition, we held a number of UX studies that have resulted in further improvements to the design, including:
This work has been checked into master and you can preview it using the Insiders Release. Textual 6 0 1 – lightweight irc client.
Number two on User Voice is the request for an integrated terminal, issue #143. It can be convenient to have a terminal embedded directly in the tool, initially scoped to the workspace you are working in. You don't have to switch windows or alter the state of an existing terminal for a quick task.
With the May release, we are rolling out the initial version of an integrated terminal. You can open the terminal using ⌃` (Windows, Linux Ctrl+`), from the View | Integrated Terminal menu, or from the View > Toggle Integrated Terminal command in the Command Palette.

The shell that is used defaults to $SHELL on Linux and OS X, and %COMSPEC% on Windows. These can be overridden manually by setting terminal.integrated.shell.* in settings. It should act just like the terminal you're familiar with.
Please note, this is an early version of what we want to deliver. Currently VS Code only supports a single terminal and there still are missing features like copying and pasting with the keyboard. Windows 10 users may experience problems getting cmd.exe to work. If so, please try enabling the legacy terminal as described in #143. The full list of current bugs and feature requests can be found here.
Note: The Toggle Integrated Terminal key binding ⌃` (Windows, Linux Ctrl+`) had previously been bound to the Cycle Between Open Editors command. You can customize the key bindings and change the behavior back if desired.
It is now possible to write a key binding rule that targets the removal of a specific default key binding. With the keybindings.json, it was always possible to redefine all the key bindings of VS Code, but it can be very difficult to make a small tweak, especially around overloaded keys, such as Tab or Escape. From now on, simply add a - to the command and the rule will be a removal rule.
Here is an example:
Variable support in CSS is a new standards proposal currently in draft form. Disk cleaner pro 1 0. VS Code now supports rich code completion (IntelliSense) for CSS variables as well as Go To Definition, Peek Definition, and Find All Occurrences for variables in the same file.

For example, here we Peek (⌥F12 (Windows Alt+F12, Linux Ctrl+Shift+F10)) at the definition of --bg-color:
The ESLint extension now supports a 'fix all problems' command. You can bind the eslint.fixAllProblems command to a keyboard shortcut, such as:
The TSLint extension now supports excluding files from linting (PR #47) as well as quick fixes for a set of TSLint warnings (PR #40). Thanks for the pull requests!
To provide greater control over how the internal Debug Console is revealed VS Code, we are introducing the internalConsoleOptions setting in launch.json (see #6159). This is especially useful if you are using an external terminal while debugging and you want to keep VS Code focused on your code. The possible values are:
neverOpen - VS Code will never open the debug consoleopenOnFirstSessionStart - VS Code will open the debug console on the first debug sessionopenOnSessionStart - VS Code will open the debug console on every debug sessionWe want VS Code to remain lightweight and fast so to improve the stepping experience for programs with a large number of local variables per scope, we've made the following adjustments for Node.js debugging:
The scope header will reflect that only the first 100 local variables are being displayed:
To track a variable that is not within the first 100 you must add it as a Watch expression or evaluate it in the Debug Console.
We have exposed a vscode.startDebug command as an extension API for the VS Code debugger component. With this, a debug session can be started programmatically either by passing the name of a launch configuration file or a complete launch configuration object:
More details can be found here.
Extensions can now contribute TextMate grammars that inject new rules into the existing grammars used for syntax highlighting. This makes it possible to add colorization inside string literals or comments, such as highlighting of URLs or TODO markers across multiple languages.
We have added a new API command that allows you to use the diff-editor on two arbitrary resources like so: commands.executeCommand('vscode.diff', uri1, uri2)
There is a new rich extension sample that walks you through virtual documents, eventing, and using language features as commands. Also, the preview html sample was updated:
In a previous revision of the VS Code Debug Protocol, we had introduced a allThreadsStopped attribute on the StoppedEvent. With this attribute, a debug adapter can report back to the frontend whether only a single thread or all threads have stopped. Thanks to developer feedback, we learned that a similar attribute is necessary for the ContinueRequest too.
In the version 1.9.0 of the VS Code Debug Protocol, a boolean attribute allThreadsContinued has been added to the response from the ContinueRequest. Using this attribute, a debug adapter can report back to the UI whether only a single thread or all threads are continuing. More details can be found here.
The Language Service Protocol now offers support for telemetry notifications. Message tracing support has been implemented in the node client library to help tracking down problems in the server. It can be enabled via a settings ${clientName}.trace.server where client name is the name passed when creating the LanguageClient instance. For example eslint.trace.server for the ESLint linter service.
https://bestjfil976.weebly.com/driver-matrix-spi-nand-flasher.html. To make it easier to automate and configure VS Code, it is now possible to list, install, and uninstall extensions from the command line.
Example:
At the heart of VS Code is the 'Monaco' code editor. You can find the 'Monaco' editor across many Microsoft properties such as OneDrive, Azure, the TypeScript playground, and even in the F12 tools in IE and Edge.
Our goal is to enable anyone to consume the 'Monaco' editor and host it in any browser. The challenge we have today is that the editor is embedded in the vscode repository and the language service extensions have dependencies on client (non browser) technologies.
The first step towards releasing the editor is an exploration where the TypeScript language service has been extracted from VS Code's sources and can run on top of the standalone editor API.
In the upcoming weeks we will continue to refine the API and automate the packaging with the goal of making the 'Monaco' editor public with the June release of VS Code.
These are the closed bugs and these are the closed feature requests for the 1.2.0 update.
Downloads: Windows | OS X | Linux 64-bit .zip.deb.rpm | Linux 32-bit .zip.deb.rpm
Last but certainly not least, a big Thank You! to the following folks that helped to make VS Code even better: Mouse and keyboard recorder 3.1.7.8 crack.
